For some further elucidation, it should be pointed out that the "when" gets
evaluated for every step of the loop, which is why it can't be applied to
decide whether to loop in the first place.

when: foo is defined and <insert conditional here on the loop item>
with_items: foo

Will work as a looping construct, if you don't want to the default trick.



On Mon, Sep 22, 2014 at 9:42 AM, Brian Coca <[email protected]> wrote:

> "with_" fields are 'auto templated', you can use jinja2 in all fields
> that are so
>
> --
> 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/CADn%2BHsygQOxL%3DPqZtijgJCkSPkSGcxWtBM0_UDj%2BFheW88tNJQ%40mail.gmail.com
> .
> 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/CA%2BnsWgy%2BnkDOvmxE4cHLX-A33HXmc5Rkk5DcCV7xNWLW9r-6Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to