Return an empty list and the task will be skipped, the `when` executes for
EACH item, this 'worked' in 1.9 as the error was ignored and task skipped,
not because the `when` was evaluated.
You can remove the `when` on the second task, for the `with_` do this:
`with_items: "{{ (ec2|default({})).instances|default([]) }}"`
----------
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].
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/CACVha7ez9L6LpWfXZdSpfiuZn4LghCkiOpBHe3wC2sjwHnBRWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.