forked from bitlair/ansible
13 lines
285 B
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
|