diff --git a/roles/ssh_hardening/templates/opensshd.conf.j2 b/roles/ssh_hardening/templates/opensshd.conf.j2 index 3b227243..1cdcbfb2 100644 --- a/roles/ssh_hardening/templates/opensshd.conf.j2 +++ b/roles/ssh_hardening/templates/opensshd.conf.j2 @@ -42,7 +42,7 @@ HostKey {{ key }} {% for certificate in ssh_host_certificates -%} HostCertificate {{ certificate }} {% endfor -%} -{% endif -%} +{% endif %} # Host key algorithms that the server offers. {% if sshd_version is version('5.8', '>=') %}