ddffgpmfn
2015-06-25 11:55:12 UTC
Seeking some best-practice advice about where to store variables within the
following structure:
* multiple inventory folders ./inventory/x, ./inventory/y, ./inventory/z
* inside each inventory folder, combinations of dynamic and static
inventory sources
* inside each inventory folder, environment specific group vars
Currently I am copy-pasting variables common to all of the inventories
(environments) between the all.yml group_vars files.
My question: is there a way to have a 'global' group variables file I can
use for this type of variable?
I know I could source a file with include_vars: at the start of each of the
multiple plays inside the playbooks, but hoped there might be something
more elegant and/or automatic (like group_vars) available. Maybe even a
simple restructure I can't think of.
.
âââ inventory
â âââ aws-dev
â â âââ aws-dev
â â âââ ec2.ini
â â âââ ec2.py
â â âââ group_vars
â â âââ all
â â â âââ all.yml
â â â âââ secrets.yml
â â âââ security_group_app.yml
â â âââ security_group_util
â â âââ secrets.yml
â â âââ security_group_util.yml
â âââ aws-prod
â â âââ aws-prod
â â âââ group_vars
â â âââ all
â â âââ all.yml
â â âââ secrets.yml
â âââ vmware-dev
â âââ group_vars
â â âââ all
â â â âââ all.yml
â â â âââ secrets.yml
â â âââ tag_role_app.yml
â âââ vmware-dev
â âââ vmware.ini
â âââ vmware.py
âââ roles
âââ aws-configure.yml
âââ aws-provision.yml
âââ vmware-configure.yml
âââ vmware-provision.yml
following structure:
* multiple inventory folders ./inventory/x, ./inventory/y, ./inventory/z
* inside each inventory folder, combinations of dynamic and static
inventory sources
* inside each inventory folder, environment specific group vars
Currently I am copy-pasting variables common to all of the inventories
(environments) between the all.yml group_vars files.
My question: is there a way to have a 'global' group variables file I can
use for this type of variable?
I know I could source a file with include_vars: at the start of each of the
multiple plays inside the playbooks, but hoped there might be something
more elegant and/or automatic (like group_vars) available. Maybe even a
simple restructure I can't think of.
.
âââ inventory
â âââ aws-dev
â â âââ aws-dev
â â âââ ec2.ini
â â âââ ec2.py
â â âââ group_vars
â â âââ all
â â â âââ all.yml
â â â âââ secrets.yml
â â âââ security_group_app.yml
â â âââ security_group_util
â â âââ secrets.yml
â â âââ security_group_util.yml
â âââ aws-prod
â â âââ aws-prod
â â âââ group_vars
â â âââ all
â â âââ all.yml
â â âââ secrets.yml
â âââ vmware-dev
â âââ group_vars
â â âââ all
â â â âââ all.yml
â â â âââ secrets.yml
â â âââ tag_role_app.yml
â âââ vmware-dev
â âââ vmware.ini
â âââ vmware.py
âââ roles
âââ aws-configure.yml
âââ aws-provision.yml
âââ vmware-configure.yml
âââ vmware-provision.yml
--
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-project+***@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/306e15e9-3a22-4c24-a346-791029131072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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-project+***@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/306e15e9-3a22-4c24-a346-791029131072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.