mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-23 00:50:18 +01:00
Use @luto solution
Simple and just works!
This commit is contained in:
parent
2117ef23e1
commit
c42662efa9
2 changed files with 2 additions and 8 deletions
|
@ -16,18 +16,15 @@
|
|||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro body_option(key,override) %}
|
||||
{% set value = undefined %}
|
||||
{% if override is defined %}
|
||||
{% set value = override %}
|
||||
{% elif sshd[key] is defined %}
|
||||
{% set value = sshd[key] %}
|
||||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% set value = sshd_defaults[key] %}
|
||||
{% else %}
|
||||
{% set value = undefined %}
|
||||
{% endif %}
|
||||
{% if value is defined %}
|
||||
{{ render_option(key,value) -}}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro match_block(match_list) %}
|
||||
{% if match_list["Condition"] is defined %}
|
||||
|
|
|
@ -16,18 +16,15 @@
|
|||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro body_option(key,override) %}
|
||||
{% set value = undefined %}
|
||||
{% if override is defined %}
|
||||
{% set value = override %}
|
||||
{% elif sshd[key] is defined %}
|
||||
{% set value = sshd[key] %}
|
||||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% set value = sshd_defaults[key] %}
|
||||
{% else %}
|
||||
{% set value = undefined %}
|
||||
{% endif %}
|
||||
{% if value is defined %}
|
||||
{{ render_option(key,value) -}}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro match_block(match_list) %}
|
||||
{% if match_list["Condition"] is defined %}
|
||||
|
|
Loading…
Reference in a new issue