diff --git a/roles/pips/tasks/nagios_tasks.yml b/roles/pips/tasks/nagios_tasks.yml index 7a5c5e6..2da8661 100644 --- a/roles/pips/tasks/nagios_tasks.yml +++ b/roles/pips/tasks/nagios_tasks.yml @@ -105,4 +105,6 @@ src: memory_usage_check.py dest: /usr/local/nagios/libexec/my_custom_check.py mode: '0755' - when: nrpe_install_result is defined and nrpe_install_result.changed \ No newline at end of file + when: + - nrpe_installed is defined + - psutil_installed is defined \ No newline at end of file