Different hosts in group_vars and hosts for deploying Bedrock-Ansibile?

I have about 10 websites all running on their own VM. Each site has it’s own Vagrantfile pointing to the bedrock-ansible directory.

How do I go about adding different hosts in group_vars and hosts for deploying?

With just one it was easy, I added the ip, and deployed. How do I go about doing multiple?

You could create hosts files for each site: hosts/site1 like:

[site1]
site1.com

Then you could also add that host group to a group_vars if you want. Like group_vars/production:

[production]
site1

Read more here: http://docs.ansible.com/intro_inventory.html

3 Likes

Thank you. Exactly what I needed.