Force config with var "ssh_hardening_force"

This commit is contained in:
Sven Velt 2021-10-19 09:38:38 +02:00
parent d21c59007b
commit 63895750ca

View file

@ -11,8 +11,14 @@
register: ssh_hardening_version
- name: Read forced config file
include_vars: "ssh_{{ ssh_hardening_force }}.yml"
when: ssh_hardening_force is defined
- name: Read SSH version config file
include_vars: "ssh_{{ ssh_hardening_version.stdout_lines.0 }}.yml"
when: ssh_hardening_force is not defined
- name: Read distribution specific variables