From 4399d3f8859e8bf2c22bbbf5c088520dd10983ca Mon Sep 17 00:00:00 2001 From: Maximilian Praeger Date: Fri, 22 Jan 2021 07:12:51 +0100 Subject: [PATCH] removed: unneccessary conditional Signed-off-by: Maximilian Praeger --- roles/ssh_hardening/templates/opensshd.conf.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/ssh_hardening/templates/opensshd.conf.j2 b/roles/ssh_hardening/templates/opensshd.conf.j2 index d4affc94..b73bfc7a 100644 --- a/roles/ssh_hardening/templates/opensshd.conf.j2 +++ b/roles/ssh_hardening/templates/opensshd.conf.j2 @@ -39,11 +39,9 @@ HostKey {{ key }} {% endfor %} # HostCertificates are listed here. -{% if ssh_host_certificates -%} {% for certificate in ssh_host_certificates -%} HostCertificate {{ certificate }} -{% endfor -%} -{% endif %} +{% endfor %} # Host key algorithms that the server offers. {% if sshd_version is version('5.8', '>=') %}