Mustaches don't stack, when: ((domainName == "AD1") or (domainName == "AD2")) <= no mustaches needed when 'when:', you are trying to do double interpolation (conditionals have implicit {{ }})
Also you probably want to use 'in' instead of multiple comparisons: when: domainName in ["AD1", "AD2"] ---------- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cHV9X8NgLpMs6GQUR%3DvZAyPtn3jUXJg3CC%3DWVK8ceCgg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.