diff --git a/roles/pips/tasks/nagios_tasks.yml b/roles/pips/tasks/nagios_tasks.yml index 77f8ca5..09f53cd 100644 --- a/roles/pips/tasks/nagios_tasks.yml +++ b/roles/pips/tasks/nagios_tasks.yml @@ -12,7 +12,7 @@ {% if ansible_facts['os_family'] == 'Debian' %} nagios-nrpe-server {% elif ansible_facts['os_family'] == 'RedHat' %} - nagios-plugins-nrpe.x86_64 + nagios-plugins-nrpe.x86_64 {% else %} nrpe {% endif %} @@ -22,7 +22,7 @@ set_fact: nrpe_location: > {% if ansible_facts['os_family'] == 'Debian' %} - "/usr/lib/nagios/plugins" + /usr/lib/nagios/plugins/ {% elif ansible_facts['os_family'] == 'RedHat' %} /usr/local/nagios/libexec {% else %} @@ -115,10 +115,9 @@ - name: Deploy custom Nagios/NRPE script ansible.builtin.copy: src: files/memory_usage.py - dest: "{{ nrpe_location }}" + dest: "{{ nrpe_location }}" mode: '0755' become: true - when: - - nrpe_installed is defined - - psutil_installed is defined - \ No newline at end of file + when: + - nrpe_installed is defined + - psutil_installed is defined \ No newline at end of file