Check if SSH key files defined when necessary

This commit is contained in:
Sven Velt 2025-03-27 11:57:01 +01:00
parent a77c52cf02
commit 9fc9c2abfb

View file

@ -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 }}"