mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-25 12:30:19 +01:00
Conditionally set value = undefined to avoid trigger lvalue issue on CentOS 6
This commit is contained in:
parent
3c6c605886
commit
03ce63e664
2 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
||||||
{% set value = sshd[key] %}
|
{% set value = sshd[key] %}
|
||||||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||||
{% set value = sshd_defaults[key] %}
|
{% set value = sshd_defaults[key] %}
|
||||||
|
{% else %}
|
||||||
|
{% set value = undefined %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if value is defined %}
|
{% if value is defined %}
|
||||||
{{ render_option(key,value) -}}
|
{{ render_option(key,value) -}}
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
{% set value = sshd[key] %}
|
{% set value = sshd[key] %}
|
||||||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||||
{% set value = sshd_defaults[key] %}
|
{% set value = sshd_defaults[key] %}
|
||||||
|
{% else %}
|
||||||
|
{% set value = undefined %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if value is defined %}
|
{% if value is defined %}
|
||||||
{{ render_option(key,value) -}}
|
{{ render_option(key,value) -}}
|
||||||
|
|
Loading…
Reference in a new issue