datsun80
2015-07-29 20:24:31 UTC
I moved my inventory files to their own directory and now the group_vars
are not loading.
Ansible Docs state:
Tip: In Ansible 1.2 or later the group_vars/ and host_vars/ directories can
exist in either the playbook directory OR the inventory directory. If both
paths exist, variables in the playbook directory will override variables
set in the inventory directory.
My current layout is as follows:
âââ hosts
â âââ dev
â âââ qa
âââ group_vars
â âââ all
â âââ dev
â âââ qa
âââ roles
âââ site.yml
What am I missing? If I move the inventory files back to the main directory
with site.yml Ansible correctly pickups the group_vars.
are not loading.
Ansible Docs state:
Tip: In Ansible 1.2 or later the group_vars/ and host_vars/ directories can
exist in either the playbook directory OR the inventory directory. If both
paths exist, variables in the playbook directory will override variables
set in the inventory directory.
My current layout is as follows:
âââ hosts
â âââ dev
â âââ qa
âââ group_vars
â âââ all
â âââ dev
â âââ qa
âââ roles
âââ site.yml
What am I missing? If I move the inventory files back to the main directory
with site.yml Ansible correctly pickups the group_vars.
--
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/273794ec-6436-4921-9f0b-f46249075c49%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/273794ec-6436-4921-9f0b-f46249075c49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.