2022-05-29 15:15:02 +02:00
|
|
|
---
|
|
|
|
- name: "Install node exporter"
|
2023-08-30 23:13:59 +02:00
|
|
|
apt:
|
2022-05-29 15:15:02 +02:00
|
|
|
update_cache: yes
|
|
|
|
state: present
|
|
|
|
name:
|
|
|
|
- prometheus-node-exporter
|
|
|
|
|
|
|
|
- name: Allow node-exporter via ufw
|
|
|
|
community.general.ufw:
|
|
|
|
rule: allow
|
|
|
|
port: 9100
|
|
|
|
proto: tcp
|
|
|
|
src: 192.168.69.0/24
|
2022-05-29 15:24:02 +02:00
|
|
|
|
|
|
|
- name: Enable and restart exporter daemon
|
2023-08-30 23:13:59 +02:00
|
|
|
service:
|
2022-05-29 15:24:02 +02:00
|
|
|
name: prometheus-node-exporter
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
2022-05-29 15:15:02 +02:00
|
|
|
...
|