This Playbook can be used to setup multiple vHosts on a single server. Take a look at group_vars/all.example
to get an idea of what it does.
Each item in sites_to_set_up
will create:
/var/www/<vhost-name>/www
hosts.example
to hosts
and modify the contents (Add server IP or hostname.tld).group_vars/all.example
to group_vars/all
and modify the contentes.Run ansible-playbook site.yml -i hosts
.