On 12.09.2016 15:15, 'Sean Cavanaugh' via Ansible Project wrote:
In this thread though Dehaan said this should work->
I just tried this on 1.9.1 I have /group_vars/staging/staging.yml and
/group_vars/staging/secrets.yml and it seems to me that it is not
merging
the files properly.
But others said this was a problem. I just don't think this is
documented
well. If its not supposed to work I guess it shouldn't work :(
According to the documentation it should work
https://docs.ansible.com/ansible/intro_inventory.html#splitting-out-host-and-group-specific-data
Quote from the page:
"As an advanced use-case, you can create directories named after your
groups or hosts, and Ansible will read all the files in these
directories. An example with the ‘raleigh’ group:
/etc/ansible/group_vars/raleigh/db_settings
/etc/ansible/group_vars/raleigh/cluster_settings
All hosts that are in the ‘raleigh’ group will have the variables
defined in these files available to them. This can be very useful to
keep your variables organized when a single file starts to be too big,
or when you want to use Ansible Vault on a part of a group’s variables.
Note that this only works on Ansible 1.4 or later."
--
Kai Stian Olstad
--
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/90953fe162eb21572eb7e453228d3cbd%40olstad.com.
For more options, visit https://groups.google.com/d/optout.