diff --git a/roles/pips/tasks/nagios_tasks.yml b/roles/pips/tasks/nagios_tasks.yml index 09f53cd..62e4fe0 100644 --- a/roles/pips/tasks/nagios_tasks.yml +++ b/roles/pips/tasks/nagios_tasks.yml @@ -115,9 +115,15 @@ - name: Deploy custom Nagios/NRPE script ansible.builtin.copy: src: files/memory_usage.py - dest: "{{ nrpe_location }}" + dest: {{ nrpe_location }}/memory_usage.py + owner: root + group: root mode: '0755' become: true when: - nrpe_installed is defined - - psutil_installed is defined \ No newline at end of file + - psutil_installed is defined + +- name: Debug NRPE installation result + debug: + var: nrpe_install_result