Reputation: 59
I have 2 vsphere and 6 networks(3 applications and different networks for production and stage) in each vsphere. I would like to deploy a new VM(using vsphere VM template) on this. I confused with the architecture. How can I manage everything in one to deploy multiple VM using one playbook with a different configuration?
Currently, it is working only for one network since the values are hardcoded.
Can anyone please guide me with the architecture. how to manage this
Thanks in advance!!
Upvotes: 1
Views: 325
Reputation: 6158
Easiest would be to group VMs in the inventory:
[group1]
VM1
VM2
VM3
[group2]
VM4
VM5
VM6
Then specify the network info in vars/group1.yml
and vars/group2.yml
.
Upvotes: 1