generated from sebclem/ansible-role-template
Fix config template
This commit is contained in:
parent
686a3495f6
commit
f736a09bc7
@ -1,13 +1,19 @@
|
|||||||
{{ ansible_managed | comment }}
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
{% for key, value in lldap_config %}
|
{% for key in lldap_config %}
|
||||||
{% if value is string %}
|
{% if lldap_config[key] is string %}
|
||||||
{{ key }}={{ value }}
|
{{ key }} = "{{ lldap_config[key] }}"
|
||||||
|
{% elif lldap_config[key] is number %}
|
||||||
|
{{ entry }} = {{ lldap_config[key] | string | lower }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
[{{ key }}]
|
[{{ key }}]
|
||||||
{% for entry, entry_value in value %}
|
{% for entry in lldap_config[key] %}
|
||||||
{{ entry }} = {{ entry_value }}
|
{% if lldap_config[key][entry] is string %}
|
||||||
|
{{ entry }} = "{{ lldap_config[key][entry] }}"
|
||||||
|
{% elif lldap_config[key][entry] is number %}
|
||||||
|
{{ entry }} = {{ lldap_config[key][entry] | string | lower }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user