{{ ansible_managed | comment }} {% for key in lldap_config %} {% if lldap_config[key] is string %} {{ key }}={{ lldap_config[key] }} {% else %} [{{ key }}] {% for entry in lldap_config[key] %} {{ entry }} = {{ lldap_config[key][entry] }} {% endfor %} {% endif %} {% endfor %}