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' %} {% if ansible_facts['os_family'] == 'Debian' %}
/usr/lib/nagios/plugins/ /usr/lib/nagios/plugins/
{% elif ansible_facts['os_family'] == 'RedHat' %} {% elif ansible_facts['os_family'] == 'RedHat' %}
/usr/local/nagios/libexec /usr/local/nagios/libexec/
{% else %} {% else %}
/usr/local/libexec/nagios /usr/local/libexec/nagios/
{% endif %} {% endif %}
register: nrpe_package_location_set register: nrpe_package_location_set
@@ -115,11 +115,11 @@
- name: Deploy custom Nagios/NRPE script - name: Deploy custom Nagios/NRPE script
ansible.builtin.copy: ansible.builtin.copy:
src: memory_usage.py src: memory_usage.py
dest: " {{ nrpe_location }} " dest: "{{ nrpe_location }}"
owner: root owner: root
group: root group: root
mode: '0755' mode: '0755'
remote_src: true remote_src: false
become: true become: true
when: when:
- nrpe_installed is defined - nrpe_installed is defined