diff --git a/roles/pips/tasks/nagios_tasks.yml b/roles/pips/tasks/nagios_tasks.yml index ed770b8..e6368a7 100644 --- a/roles/pips/tasks/nagios_tasks.yml +++ b/roles/pips/tasks/nagios_tasks.yml @@ -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