Hi all,
I have read the http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable it does nto answer my question.
Basically I saw two unexpected (at least common sense speaking) behaviour.
example in my inventory hosts file
[base]
jibs
[base:vars]
DNS_SERVER=172.17.42.1
[jibs]
test-jibs ansible_ssh_host=192.168.0.100 ansible_ssh_user=root
[jibs:vars]
XX=VALUE
-
The host test-jibs in jibs groups does not inherit the base:vars
-
If I have a file named test-jibs in the directory host_vars these variable is not used when the section [jibs:vars] has the same variable name - which is group_vars has more priority than host_vars.
Is it correct behaviour or am I wrong somewhere in my setup.
Kind regards