forked from bitlair/ansible
common: Remove node-exporter
This commit is contained in:
parent
a8f593d9b7
commit
8f3f72098d
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -11,3 +11,5 @@ trusted_ranges:
|
|||
network_br: off
|
||||
network_dhcp: off
|
||||
network_static: off
|
||||
|
||||
node_exporter: yes
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue