Nodeexporter single task version

This commit is contained in:
Mark Janssen 2024-07-11 22:02:32 +02:00
parent 7d268140db
commit 905affc83b

View file

@ -3,5 +3,5 @@
- name: Install or remove prometheus node-exporter
ansible.builtin.apt:
name: prometheus-node-exporter
state: "{% if node_exporter|bool %}present{% else %}absent{% endif %}
state: "{% if node_exporter %}present{% else %}absent{% endif %}"
autoremove: yes