Re: [ansible-project] Merging of host_vars and group_vars?

2014-08-08 Thread Michael DeHaan
hash_merge would only merge hashes, not lists. So if you instead had users keyed such that they were in the hash based on the username, that would work. users: dev: name: dev groups: ['dev'] uid: 2001 etc The extra "name" may also be redundant, but this should get you o

[ansible-project] Merging of host_vars and group_vars?

2014-08-08 Thread ryan
I have a playbook with a role that creates users that are defined in group_vars/all, similar to this role https://galaxy.ansible.com/list#/roles/51. When I define a user in the host_vars/foo it takes over precedence and does not add the users I have in group_vars/all. I have set hash_behaviou