Skip to content

Commit

Permalink
Disable whitespace control in sshd jinja template
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Aug 28, 2024
1 parent 59eabb3 commit dd59969
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/sshd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit dd59969

Please sign in to comment.