mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-22 11:00:19 +01:00
Remove boolean comparison and regenerate templates
This commit is contained in:
parent
8e180cfb48
commit
3e9d408015
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
{% macro render_option(key,value,indent=false) %}
|
||||
{% if value is defined %}
|
||||
{% if indent == true %} {% endif %}
|
||||
{% if indent %} {% endif %}
|
||||
{% if value is sameas true %}
|
||||
{{ key }} yes
|
||||
{% elif value is sameas false %}
|
||||
|
@ -20,7 +20,7 @@
|
|||
{% set value = override %}
|
||||
{% elif sshd[key] is defined %}
|
||||
{% set value = sshd[key] %}
|
||||
{% elif __sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% elif __sshd_defaults[key] is defined and not sshd_skip_defaults %}
|
||||
{% set value = __sshd_defaults[key] %}
|
||||
{% endif %}
|
||||
{{ render_option(key,value) -}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# {{ ansible_managed }}
|
||||
{% macro render_option(key,value,indent=false) %}
|
||||
{% if value is defined %}
|
||||
{% if indent == true %} {% endif %}
|
||||
{% if indent %} {% endif %}
|
||||
{% if value is sameas true %}
|
||||
{{ key }} yes
|
||||
{% elif value is sameas false %}
|
||||
|
@ -21,7 +21,7 @@
|
|||
{% set value = override %}
|
||||
{% elif sshd[key] is defined %}
|
||||
{% set value = sshd[key] %}
|
||||
{% elif __sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% elif __sshd_defaults[key] is defined and not sshd_skip_defaults %}
|
||||
{% set value = __sshd_defaults[key] %}
|
||||
{% endif %}
|
||||
{{ render_option(key,value) -}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% macro render_option(key,value,indent=true) %}
|
||||
{% if value is defined %}
|
||||
{% if indent == true %} {% endif %}
|
||||
{% if indent %} {% endif %}
|
||||
{% if value is sameas true %}
|
||||
{{ key }} yes
|
||||
{% elif value is sameas false %}
|
||||
|
@ -20,7 +20,7 @@
|
|||
{% set value = override %}
|
||||
{% elif sshd[key] is defined %}
|
||||
{% set value = sshd[key] %}
|
||||
{% elif __sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% elif __sshd_defaults[key] is defined and not sshd_skip_defaults %}
|
||||
{% set value = __sshd_defaults[key] %}
|
||||
{% endif %}
|
||||
{{ render_option(key,value) -}}
|
||||
|
|
Loading…
Reference in a new issue