This is wrong, when: are always templated and you should not use {{ }}, if
what you say were true groups wouldn't work either as they are also a
variable. You are actually doing double interpolation, that is why you need
the quotes.

     when: ("{{ inventory_hostname }}" in groups["web"]) or ("{{
> inventory_hostname }}" in groups["web_backend"])
>
>      ignore_errors: true
>
>      notify: restart httpd
>
> ...
>
> # vim: set ft=ansible:
>
> ----------
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 [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/CACVha7e80UzNNUwQbp80Dc4K6kKJJY4bDXE-EQLka%3D3dr5z7EA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to