Variable precedence in 1.8.4 and 1.6.10

15 views
Skip to first unread message

Sergey Maslyakov

unread,
Jun 24, 2015, 3:37:52 PM6/24/15
to ansible...@googlegroups.com
I observe a strange difference in behavior of Ansible 1.8.4 and 1.6.10.

I have a variable in group_vars/all and then I override it in the inventory file in the [all:vars] section.

In 1.6.10, it works as expected. The value from [all:vars] in the inventory takes precedence.

In 1.8.6, it is still the value from group_vars/all that takes precedence.
If I move the override in the inventory file out of [all:vars] and into an explicit [host_group:vars] it works fine.

Is there a difference in how [all:vars] is handled in 1.6.10 and 1.8.4?


Regards,
/Sergey

Reply all
Reply to author
Forward
0 new messages