generated from sebclem/ansible-role-template
20 lines
542 B
Django/Jinja
20 lines
542 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
{% for key in lldap_config %}
|
|
{% if lldap_config[key] is string %}
|
|
{{ key }} = "{{ lldap_config[key] }}"
|
|
{% elif lldap_config[key] is number %}
|
|
{{ entry }} = {{ lldap_config[key] | string | lower }}
|
|
{% else %}
|
|
|
|
[{{ key }}]
|
|
{% for entry in lldap_config[key] %}
|
|
{% 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 %}
|
|
|
|
{% endif %}
|
|
{% endfor %} |