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"