On Thursday, October 22, 2015 at 6:39:48 AM UTC-7, Brian Coca wrote: > > Plays tend to be more specific than inventory, that is why group/host > vars for plays override inventory ones, but again these are optional. > Ansible is flexible and allows for several workflows, in most cases > though, play group/host vars are in addition to the inventory ones. > > I don't see how that can be true. The Ansible documentation clearly instructs your to have multiple inventory files as a best-practice. That is, a file per devel/staging/proc/etc. That would mean, each inventory (environment) would have differing variables (IPs, number of app servers, memory settings, etc.). However, you would still use the same playbooks (web server, db server) across all environments.
So, in my mind, at least, inventory vars should have higher precedence than playbook vars, since an inventory/environment will have settings that change even if the same playbook is used. -- 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/eed2e3e9-d565-46fc-9134-dfe97a5aa9a1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
