2023-10-25 22:26:17 +02:00
|
|
|
---
|
2024-09-12 15:20:49 +02:00
|
|
|
- name: Ensure unwanted plugins are absent
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.file:
|
2024-02-15 13:52:00 +01:00
|
|
|
path: "{{ munin_plugin_dest_path }}{{ item }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
state: absent
|
|
|
|
loop: "{{ munin_node_disabled_plugins }}"
|
|
|
|
notify: restart munin-node
|
|
|
|
when: munin_node_disabled_plugins is defined
|
|
|
|
|
2024-09-12 15:20:49 +02:00
|
|
|
- name: Ensure additional plugin-config is absent
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.file:
|
|
|
|
state: absent
|
2024-02-15 13:52:00 +01:00
|
|
|
dest: "{{ munin_plugin_conf_dest_path }}{{ item }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
notify: restart munin-node
|
|
|
|
loop: "{{ munin_node_disabled_plugins }}"
|
|
|
|
when: munin_node_disabled_plugins is defined
|