Only set default for ssh host key files when hardening the server (#393)

Signed-off-by: Norman Ziegner <[email protected]>
This commit is contained in:
Norman Ziegner authored and GitHub committed 2021-02-09 10:01:41 +01:00
1 parent 0cfdb1954e
commit f035053381
1 file changed
+3 -1
+3 -1
View File
@@ -33,7 +33,9 @@
- name: set default for ssh_host_key_files if not supplied
include_tasks: crypto_hostkeys.yml
when: not ssh_host_key_files
when:
- ssh_server_hardening | bool
- not ssh_host_key_files
- name: set default for ssh_macs if not supplied
include_tasks: crypto_macs.yml