ansible/roles/common/tasks/node-exporter.yaml

13 lines
285 B
YAML

---
- name: Install node-exporter
ansible.builtin.apt:
name: prometheus-node-exporter
state: present
when: node_exporter
- name: Remove node-exporter
ansible.builtin.apt:
name: prometheus-node-exporter
state: absent
autoremove: yes
when: not node_exporter