a) you are using {{}} in when clause
b) you start a YAML value by a quote but do not end by a quote
c) you want this:

when: inventory_hostname in groups['hadoop-clouderamanager']

or

when: "'hadoop-clouderamanager' in group_names"

----------
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/CACVha7e7RuCyN%2B2S67WNX0QNtxEo4wNTRt6UY8nPCuH4LyQL5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to