Hi Brian,

thanks a lot for the pointer / the solution. A double-default does the
trick in this case :)

 with_items: "{{ (pkg_repo_list|default({})).repo_keys | default([]) }}"

Cheers, Kai


On 12/12/16 15:23, Brian Coca wrote:
> when executes for each item in the loop and cannot short circuit the
> with_ as documented
> here 
> http://docs.ansible.com/ansible/playbooks_conditionals.html#loops-and-conditionals
> 
> 
> ----------
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CACVha7fymop6Sn%2BM7bSX6Ew%2B5xPfo3r8dGnkxXQGvosm7hLsDA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CACVha7fymop6Sn%2BM7bSX6Ew%2B5xPfo3r8dGnkxXQGvosm7hLsDA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b539e8d7-f717-7ab3-b0b0-0442e53f6c1e%40gmx.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to