Add openssh role

This commit is contained in:
2019-03-13 01:48:49 -05:00
parent 4aa5cd77a7
commit 3900e5c4d0
7 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# {{ 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 %}