This commit is contained in:
2025-11-23 17:30:32 +01:00
parent 25ac8d85fb
commit 70a7a62dd1
+4 -4
View File
@@ -24,9 +24,9 @@
{% if ansible_facts['os_family'] == 'Debian' %}
/usr/lib/nagios/plugins/
{% elif ansible_facts['os_family'] == 'RedHat' %}
/usr/local/nagios/libexec
/usr/local/nagios/libexec/
{% else %}
/usr/local/libexec/nagios
/usr/local/libexec/nagios/
{% endif %}
register: nrpe_package_location_set
@@ -115,11 +115,11 @@
- name: Deploy custom Nagios/NRPE script
ansible.builtin.copy:
src: memory_usage.py
dest: " {{ nrpe_location }} "
dest: "{{ nrpe_location }}"
owner: root
group: root
mode: '0755'
remote_src: true
remote_src: false
become: true
when:
- nrpe_installed is defined