ansible/roles/openssh/templates/sshd_config.j2

17 lines
374 B
Plaintext
Raw Normal View History

2019-03-13 06:48:49 +00:00
# {{ ansible_managed }}
{% set sshd_config = openssh_default_sshd_config | combine(openssh_sshd_config) %}
{% for k, v in sshd_config | dictsort %}
{% if v is sameas true %}
{{ k }} {{ v }}
{% elif v is sameas false %}
{{ k }} {{ v }}
{% elif v is string or v is number %}
{{ k }} {{ v }}
{% else %}
{% for vi in v %}
{{ k }} {{ vi }}
{% endfor %}
{% endif %}
{% endfor %}