scan multiple hosts for processes code example
Example 1: multiple hosts in same role
---
- connection: local
gather_facts: false
hosts: linux-srvr
roles:
- linuxchk
- gather_facts: false
hosts: jabber-srvr
roles:
- jabber-msg
Example 2: multiple hosts in same role
---
- hosts: groupa
roles:
- oracle
- hosts: groupb
roles:
- apache
- hosts: local
connection: local
tasks:
- { debug: { msg: "Tasks to run locally" } }