check nrpe installed

This commit is contained in:
2025-11-20 18:26:49 +01:00
parent 989873fa6b
commit 4b4893781f
+8
View File
@@ -1,3 +1,11 @@
- name: Gather installed package facts
package_facts:
manager: auto
- name: Check if python3-psutil is installed
debug:
msg: "NRPE is installed."
when: "'nagios-nrpe' in ansible_facts.packages"
- name: Deploy custom Nagios/NRPE script - name: Deploy custom Nagios/NRPE script
ansible.builtin.copy: ansible.builtin.copy: