homeserver/roles/mgrote_munin_node/tasks/remove.yml

17 lines
529 B
YAML
Raw Permalink Normal View History

---
- 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