diff --git a/tasks/main.yml b/tasks/main.yml index a60fe3c..d5f76ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,7 +9,8 @@ that: - monitored_dont|default(false) != true - monitored_by_nrpe == true or monitored_by_ssh == true - fail_msg: "Neither monitored_by_nrpe nor monitored_by_ssh set to True" + - monitored_by_ssh != true or monitored_ssh_key_files != [] + fail_msg: "Sanity checks failed" - name: Gather OS Specific Variables include_vars: "{{ item }}"