--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d42530f6-a77d-4a13-9506-b4948efeb003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
production # inventory file for production servers stage # inventory file for stage environment group_vars/ group1 # here we assign variables to particular groups group2 # "" host_vars/ hostname1 # if systems need specific variables, put them here hostname2 # ""
inventory/production # inventory file for production servers inventory/stage # inventory file for stage environment group_vars/ group1 # here we assign variables to particular groups group2 # ""
inventory/production/inventory # inventory file for production servers inventory/stage/inventory # inventory file for stage environment inventory/production/group_vars/ group1 # here we assign variables to production group1
inventory/production # inventory file for production servers inventory/stage # inventory file for stage environment group_vars/ group1 # here we assign variables to particular groups group2 # ""
Drop the group_vars directory inside inventory, so like inventory/group_vars/group1.
Then it just works. group_vars must be alongside the inventory files, but "-i inventory_dir" is a shortcut to run multiple inventory files at the same time, should you ever want to.
Still use groups and have groups for production and stage, because you may want them in your playbooks to assign different variable settings to them.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1b3ca2b5-114e-4ba0-8075-3c1abf18e1b5%40googlegroups.com.
inventory/production # inventory file for production servers inventory/stage # inventory file for stage environment inventory/group_vars/ group1 # here we assign variables to particular groups group2 # ""
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/21778c9a-5733-4b50-9865-9e0ba8a1b5f8%40email.android.com.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1409214674.1310501.157687269.4E51BB12%40webmail.messagingengine.com.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1409131539.961708.157261905.26150BFC%40webmail.messagingengine.com.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1409214674.1310501.157687269.4E51BB12%40webmail.messagingengine.com.