Skip to content

Commit

Permalink
Only set default for ssh host key files when hardening the server (#393)
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <norman.ziegner@ufz.de>
  • Loading branch information
Norman Ziegner committed Feb 9, 2021
1 parent 0cfdb19 commit f035053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/ssh_hardening/tasks/hardening.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f035053

Please sign in to comment.