HI, 

I have a task that runs only on servers that are under Kafka group. How can 
i run the task on Kafka and Webserver groups only.

Thanks

- name: install java-8-openjdk' packages
  yum:
    name: ['java-1.8.0-openjdk']
    state: latest
    when: "'kafka' in group_names"

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cf3bbf5c-94ca-4e0b-b1e2-6fe0c5aef863%40googlegroups.com.

Reply via email to