diff --git a/templates/lldap-config.toml.j2 b/templates/lldap-config.toml.j2 index 5497c82..d0eb9bc 100644 --- a/templates/lldap-config.toml.j2 +++ b/templates/lldap-config.toml.j2 @@ -1,12 +1,12 @@ {{ ansible_managed | comment }} -{% for key, value in lldap_config %} -{% if value is string %} -{{ key }}={{ value }} +{% for key in lldap_config %} +{% if lldap_config[key] is string %} +{{ key }}={{ lldap_config[key] }} {% else %} [{{ key }}] -{% for entry, entry_value in value %} +{% for entry, entry_value in lldap_config[key] %} {{ entry }} = {{ entry_value }} {% endfor %}