check nrpe installed
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user