From dd5996912fd829cd676aa00a1a7f9c97bf7f0096 Mon Sep 17 00:00:00 2001 From: Wolfgang Medina-Erhardt Date: Wed, 28 Aug 2024 14:59:36 +0200 Subject: [PATCH] Disable whitespace control in sshd jinja template --- tasks/sshd.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/sshd.yaml b/tasks/sshd.yaml index 30183de..3677af4 100644 --- a/tasks/sshd.yaml +++ b/tasks/sshd.yaml @@ -27,12 +27,12 @@ validate: "{{ 'sshd -T -f %s' if (lookup('env', 'GITHUB_ACTIONS') | length) == 0 else omit }}" dest: /etc/ssh/sshd_config.d/00-ansible.conf content: | - {%- for key, value in system.sshd.config.items() %} - {%- if value is boolean %} - {{ key }} {{ value | ternary('yes', 'no') }} - {%- else %} - {{ key }} {{ value }} - {%- endif %} - {%- endfor %} + {% for key, value in system.sshd.config.items() %} + {% if value is boolean %} + {{ key }} {{ value | ternary('yes', 'no') }} + {% else %} + {{ key }} {{ value }} + {% endif %} + {% endfor %} owner: root mode: "0644"