2019-04-28 05:00:57 +02:00
|
|
|
{% from "openssh/map.jinja" import openssh, sshd_config with context %}
|
2018-02-15 17:43:13 +01:00
|
|
|
|
|
|
|
include:
|
|
|
|
- openssh
|
|
|
|
|
2019-04-28 05:00:57 +02:00
|
|
|
{% if sshd_config %}
|
2018-02-15 17:43:13 +01:00
|
|
|
sshd_config-with-ini:
|
|
|
|
ini.options_present:
|
|
|
|
- name: {{ openssh.sshd_config }}
|
|
|
|
- separator: ' '
|
|
|
|
- watch_in:
|
|
|
|
- service: {{ openssh.service }}
|
|
|
|
- sections:
|
2019-04-28 05:00:57 +02:00
|
|
|
{%- for k,v in sshd_config.items() %}
|
2018-02-15 17:43:13 +01:00
|
|
|
{{ k }}: '{{ v }}'
|
|
|
|
{%- endfor %}
|
|
|
|
{% endif %}
|