Brian: After reading http://docs.ansible.com/ansible/intro_inventory.html I'm thinking that I will end up with huge inventory files (hundreds or even thousands of systems) that are difficult to maintain -- something I was hoping to avoid. My thought was that if I had a (CSV) file with default gateway addresses and associated location names and another (CSV) file with location names with configuration information (DNS server IP addresses, DNS suffix search order) that Ansible could iterate over both to make the necessary changes. This way I only need to worry about the 'all' inventory.
On Thursday, October 20, 2016 at 12:54:26 AM UTC-4, Brian Coca wrote: > Many ways to do this, I recommend using different groups for each and then > assigning variables with the different configurations, use those variables > in the plays. > > To store this data 'externally from playbook' I would use group/host_vars. > > As for inventory, it does not need to be files, via the dynamic scripts > you can use any source of data to generate the inventory for Ansible, check > the existing ones as they should cover most common cases. > > -- > ---------- > Brian Coca > -- 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/34a74455-e7ea-4dda-9389-0a7e5a5f4064%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
