Hi guys, im having a role defined like this on my main playbook.yml, this 
role runs on the galera hosts :

- hosts: galera
  gather_facts: True
  roles:   
    - { role: galera, tags: ['galera'] }

The main.yml in the tasks directory of the role goes like this:

---
- include: mysql.yaml
- include: rabbitmq.yaml

When i first lets say, install mysql on the galera hosts, BUT, after that i 
need to go to the rabbit host, and execute the tasks in the rabbitmq.yaml, 
and that fails of course because i want to run rabbit module things over a 
hosts that only has mysql in it, so, being the role executed in the 
playbook.yaml over the galera hosts, ive tried this without success on the 
roles/galera/tasks/main.yaml

---
- include: mysql.yaml
- hosts: rabbitmq
  include: rabbitmq.yaml

So my question is, how can i specify to a role, that it MIGHT do things on 
different hosts in whole run ?
Is that doable ?

thanks!
best regards

-- 
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/032b93ef-82c2-4b83-bb3c-51b700758051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to