From ab5e7425a190714d7850d66b626d7edcb2c22dbe Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Mon, 16 Sep 2019 17:43:19 +0200 Subject: [PATCH] Improve template layout --- templates/sshd_config.j2 | 12 ++++++------ vars/main.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index b211514..82ddedd 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -20,14 +20,14 @@ TCPKeepAlive yes # Server authentication Protocol 2 -{% if ansible_distribution_release == 'wheezy' -%} - # HostKey /etc/ssh/ssh_host_ed25519_key +{% if ansible_distribution_release == 'wheezy' %} +# HostKey /etc/ssh/ssh_host_ed25519_key {% else %} - HostKey /etc/ssh/ssh_host_ed25519_key - {%- if generate_ecdsa_too %} +HostKey /etc/ssh/ssh_host_ed25519_key +{% if generate_ecdsa_too %} HostKey /etc/ssh/ssh_host_ecdsa_key - {%- endif -%} -{%- endif %} + {% endif %} +{% endif %} # Not available in openssh 6.7 # HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519 diff --git a/vars/main.yml b/vars/main.yml index 059d6b1..5626c45 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 1048 # should be over ninethousand +playbook_version_number: 2048 # should be over ninethousand playbook_version_path: '/etc/ansible-version/role-sshd_chaos-bodensee_github.com.version'