From 9fc9c2abfb0e5df2aa7a213af528600c2e71dea6 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 27 Mar 2025 11:57:01 +0100 Subject: [PATCH] Check if SSH key files defined when necessary --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}"