---
- name: Prometheus node exporter
apt:
name:
- prometheus-node-exporter
state: present
- name: Allow queries from prometheus server
ufw:
rule: allow
port: "9100"
direction: in
proto: tcp
from: "{{ prometheus_server_ip }}"