2023-04-19 16:45:51 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
2023-04-19 17:30:14 +02:00
|
|
|
{% 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 }}
|
2023-04-19 16:45:51 +02:00
|
|
|
{% else %}
|
|
|
|
|
|
|
|
[{{ key }}]
|
2023-04-19 17:30:14 +02:00
|
|
|
{% 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 %}
|
2023-04-19 16:45:51 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|