mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-29 06:00:19 +01:00
Update source template files used to generate final template
This commit is contained in:
parent
32f9d0dda5
commit
fd22532d93
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
{% macro match_iterate_block(match_list) %}
|
||||||
|
{% if match_list | type_debug == "list" %}
|
||||||
|
{% for match in match_list %}
|
||||||
|
{{ match_block(match) -}}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
{{ match_block(match_list) -}}
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{% if sshd['Match'] is defined %}
|
{% if sshd['Match'] is defined %}
|
||||||
{{ match_block(sshd['Match']) -}}
|
{{ match_iterate_block(sshd['Match']) -}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if sshd_match is defined %}
|
{% if sshd_match is defined %}
|
||||||
{{ match_block(sshd_match) -}}
|
{{ match_iterate_block(sshd_match) -}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if sshd_match_1 is defined %}
|
{% if sshd_match_1 is defined %}
|
||||||
{{ match_block(sshd_match_1) -}}
|
{{ match_block(sshd_match_1) -}}
|
||||||
|
|
Loading…
Reference in a new issue