On Wed, 15 Jan 2020 19:47:23 +0100
Vladimir Botka <vbo...@gmail.com> wrote:

> Fit the template to your needs. For example the template
> 
>     {% for item in sssd_config.items() %}
>     [{{ item.0 }}]
>     {{ item.1.keys().0 }}={{ item.1.values().0 }}
>     {% endfor %}
> 
> gives
> 
>     [nss]
>     reconnection_retries=3
>     [pam]
>     debug_level=5
>     [sssd]
>     debug_level=1

There might be more items in the configuration sections. The template
below gives the same result and would include other parameters if present

    {% for item in sssd_config.items() %}
    [{{ item.0 }}]
    {% for iitem in item.1.items() %}
    {{ iitem.0 }}={{ iitem.1 }}
    {% endfor %}
    {% endfor %}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20200115195642.0c84d845%40gmail.com.

Attachment: pgpn1hDVCVexx.pgp
Description: OpenPGP digital signature

Reply via email to