As Dick says, you can use multiple inventories. Check out the directory layout in the Ansible Best Practices guide for more info: http://docs.ansible.com/ansible/playbooks_best_practices.html#directory-layout
On Wednesday, November 9, 2016 at 8:10:36 PM UTC+1, Victor Caballero wrote: > > Hello, > > I want to use the same playbook for production and development. The > playbook is divided in separate role-hosts, let's say: pubsubservers and > mongoservers. I have a hosts file assigning the hostnames: > > [mongoservers] > 172.16.2.198 > > > [pubsubservers] > 172.16.2.211 > > [pubsubandmongo:children] > mongoservers > pubsubservers > > Imagine that the configuration shown above is for production (production > ip adresses). Is there any way to "override" the ip adresses for > development (i.e. 127.0.0.1 for both mongoservers and pubsubservers) > without changing the hosts file? > > Thank you, > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f86584c5-1fa1-48e7-ba89-eae4b8f59bf4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
