commited current state
This commit is contained in:
14
roles/checkmk-monitoring/tasks/cleanup-agent-plugins.yaml
Normal file
14
roles/checkmk-monitoring/tasks/cleanup-agent-plugins.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: "Find and remove specified Checkmk agent plugins"
|
||||
block:
|
||||
- name: "Remove Checkmk agent plugins"
|
||||
ansible.builtin.file:
|
||||
path: "/usr/lib/check_mk_agent/local/{{ item }}"
|
||||
state: absent
|
||||
loop: "{{ checkmk_agent_plugins_to_remove }}"
|
||||
when: checkmk_agent_plugins_to_remove is defined
|
||||
|
||||
- name: "Debug: Removed plugins"
|
||||
ansible.builtin.debug:
|
||||
msg: "Removed plugins: {{ checkmk_agent_plugins_to_remove }}"
|
||||
when: checkmk_agent_plugins_to_remove is defined
|
||||
Reference in New Issue
Block a user