From 9fba0f7ff43422676bb282b8021116fc39f747fb Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Nov 04 2020 23:17:09 +0000 Subject: basessh: revert new ed25519 key on pagure.io as well Signed-off-by: Kevin Fenzi --- diff --git a/roles/basessh/templates/sshd_config b/roles/basessh/templates/sshd_config index fcbb782..01db89c 100644 --- a/roles/basessh/templates/sshd_config +++ b/roles/basessh/templates/sshd_config @@ -13,12 +13,12 @@ MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@op {% endif %} HostKey /etc/ssh/ssh_host_rsa_key -{% if ansible_hostname != 'pkgs01' %} +{% if not ansible_hostname.startswith(('pkgs01','pagure01')) %} HostKey /etc/ssh/ssh_host_ed25519_key {% endif %} HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub -{% if ansible_hostname != 'pkgs01' %} +{% if not ansible_hostname.startswith(('pkgs01','pagure01')) %} HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub {% endif %}