On Sat, Oct 4, 2014 at 8:42 PM, Eric Wedaa <[email protected]> wrote: > I've looked and looked but I can't find it. > > How do I do multiple tests within a single when statement. > > For instance > when: var1 == "X" AND var2 == "Y"
when: ansible_lsb.id == 'RedHat' and ansible_lsb.major_release|int == 6 when: ansible_hostname != 'localhost' I haven't been able to find any example with "and/or" grouping ... no idea if the parenthesis works :-) -- 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/CAD%2BpdNcU82TXe649K%3Dz1wBuZNco3ag7qJ9yCNraZNUoN8a7%3DHg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
