common: Remove node-exporter
This commit is contained in:
parent
a8f593d9b7
commit
8f3f72098d
3 changed files with 11 additions and 0 deletions
|
@ -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
Add a link
Reference in a new issue