I have a task with a when: "'web' in group_names" and it work as I expect it to, only running against servers in a web group.
But now I want the conditional to match on web *or* db. I expected something like: when: "'web' or 'db' in group_names" would work, but it does not. Neither does when: "'web' in group_names" or "'db' in group_names" I've also tried most variations of the above. How can I get a task to *only* run if 'web' OR 'db' exist in the group_name? Thanks! -- 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/a064de72-4e69-4748-b9ea-178937ca7c95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
