On Thu, 29 Aug 2024 at 13:38, 'Rowe, Walter P. (Fed)' via Ansible
Project <[email protected]> wrote:
>
> https://docs.ansible.com/ansible/latest/collections/community/general/dict_filter.html
>
> This is an even more elegant solution using the community.general.dict module:
>
>
>     - name: list2dict
>
>       set_fact:
>
>         list2dict: >-
>
>           {{ test | map('zip', ['name', 'addr'])
>
>                 | map('map', 'reverse')
>
>                 | map('community.general.dict') }}


perfect, thx!!

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLbt-LJ-ODEYQ%2BcFypRBOU%3DNxLZgzU4WhAAo_hn2_0Uh6w%40mail.gmail.com.

Reply via email to