In the case of 'set_fact' you should not see much difference, but in
most other cases map will always be faster, with_<lookup> executes the
task once per item, except when squashing, but that is magic reserved
to only a few plugins.

FYI the 'item's part is equivalent of loop: '{{ [ "four", "five",
"six"] | flatten(depth=1) }}', a closer representation to map would be
with_list.



-- 
----------
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7fyXEtTFnwgv47zQ2sX1W19YAn3zz52D%2BFjm-XJvoW_aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to