Avril
0
Q:

multiple hosts in same role

---
- hosts: groupa
  roles:
    - oracle

- hosts: groupb
  roles:
    - apache

- hosts: local
  connection: local
  tasks:
    - { debug: { msg: "Tasks to run locally" } }
0
---
- connection: local
  gather_facts: false
  hosts: linux-srvr
  roles:  
  - linuxchk

- gather_facts: false
  hosts: jabber-srvr
  roles:  
  - jabber-msg
0

New to Communities?

Join the community