I have a created a set of playbooks to deploy a server from a template in vmware. I have to admit this works great. The only changes I need to make are a few variables in a vars file and the hosts file. My question is in regarding the hosts file. Is it possible to use variables within the hosts file so that I only have to make changes in just my vars file or do I always have to modify the hosts file to add the ip address of the server for further configuration in some of the playbooks. I have tried a couple of things but unsuccessful.
I have a created a set of playbooks to deploy a server from a template in vmware. I have to admit this works great.
The only changes I need to make are a few variables in a vars file and the hosts file. My question is in regarding the
hosts file. Is it possible to use variables within the hosts file
so that I only have to make changes in just my vars
file or do I always have to modify the hosts file to add the ip address
of the server for further configuration in some
of the playbooks. I have tried a couple of things but unsuccessful.