Yes, this would also be easy for you to test and try on your own too :)

You can also do:

- shell: foo
  when:
     - a == b
     - c == d
     - e == f

And do ands that way, can sometimes be easier to read.



On Fri, Aug 15, 2014 at 7:32 AM, Сергей Антипов <[email protected]>
wrote:

> Hello.
>
> This is possible to add more than 2 conditions like this?
>
> - shell: ifdown {{ item.item.device }}; ifup {{ item.item.device }}
>   with_items: ether_result.results
>   when: ether_result is defined and and item.changed and
> ether_int_status|failed
>
> ether_result and ether_int_status are registered variables.
>
> --
> 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/9d1e3e8e-b758-42ce-bcd3-db617e0b52df%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9d1e3e8e-b758-42ce-bcd3-db617e0b52df%40googlegroups.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/CA%2BnsWgzSEP%2BK8u53gVEQ656dVwFMpyp%2B8hJdKf2wrmSiQQgCcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to