homeserver/roles/mgrote_munin_node/tasks/remove.yml
Michael Grote 25696766c5
Some checks failed
ansible-lint / ansible-lint (push) Failing after 4s
gitleaks / gitleaks (push) Successful in 3s
set rate-limit higher and let... (#177)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/177
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-09-12 15:20:49 +02:00

16 lines
529 B
YAML

---
- name: Ensure unwanted plugins are absent
ansible.builtin.file:
path: "{{ munin_plugin_dest_path }}{{ item }}"
state: absent
loop: "{{ munin_node_disabled_plugins }}"
notify: restart munin-node
when: munin_node_disabled_plugins is defined
- name: Ensure additional plugin-config is absent
ansible.builtin.file:
state: absent
dest: "{{ munin_plugin_conf_dest_path }}{{ item }}"
notify: restart munin-node
loop: "{{ munin_node_disabled_plugins }}"
when: munin_node_disabled_plugins is defined