From 27717bcceb00c509db33889eff59c3a508640636 Mon Sep 17 00:00:00 2001 From: SebClem Date: Wed, 19 Apr 2023 17:30:14 +0200 Subject: [PATCH] Fix config template --- templates/lldap-config.toml.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/lldap-config.toml.j2 b/templates/lldap-config.toml.j2 index 5497c82..d0d5c43 100644 --- a/templates/lldap-config.toml.j2 +++ b/templates/lldap-config.toml.j2 @@ -1,13 +1,13 @@ {{ 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 %} -{{ entry }} = {{ entry_value }} +{% for entry in lldap_config[key] %} +{{ entry }} = {{ lldap_config[key][entry] }} {% endfor %} {% endif %}