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