common: Remove node-exporter

This commit is contained in:
polyfloyd 2022-10-08 16:10:40 +02:00
parent a8f593d9b7
commit 8f3f72098d
3 changed files with 11 additions and 0 deletions

View file

@ -12,3 +12,4 @@ trusted_ranges:
- { v: ipv6, cidr: "::1" }
- { v: ipv6, cidr: "fe80::/10" }
- { v: ipv6, cidr: "2a02:166b:92::/64" }
node_exporter: no

View file

@ -11,3 +11,5 @@ trusted_ranges:
network_br: off
network_dhcp: off
network_static: off
node_exporter: yes

View file

@ -3,3 +3,11 @@
apt:
name: prometheus-node-exporter
state: present
when: node_exporter
- name: Remove node-exporter
apt:
name: prometheus-node-exporter
state: absent
autoremove: yes
when: not node_exporter