scan multiple hosts for process code example
Example 1: APACHE MULTIPLE HOstnames
# Ensure that Apache listens on port 80
Listen 80
<VirtualHost *:80>
DocumentRoot "/www/example1"
ServerName www.example.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/www/example2"
ServerName www.example.org
# Other directives here
</VirtualHost>
Example 2: multiple hosts in same role
---
- connection: local
gather_facts: false
hosts: linux-srvr
roles:
- linuxchk
- gather_facts: false
hosts: jabber-srvr
roles:
- jabber-msg