I /think/ I know where the problem comes from: I encountered it with group vars 
defined in the inventory file. I eventually moved both the role variables and 
group_vars into inventory file, trying to establish one place where the 
variables are defined. Now:

My inventory file looks like this (IPs are dummy):

[group0]
234.123.41.44
[group0:vars]
var0=00
var1=01

[group1]
234.123.41.45
[group1:vars]
var0=10
var1=11

Now, in this configuration, variables have their values intact. But when I 
refer with both groups to the same host, like:

[group0]
234.123.41.44
[group0:vars]
var0=00
var1=01

[group1]
234.123.41.44
[group1:vars]
var0=10
var1=11

which I guess is rather typical when deploying to development environment, then 
the group0 variables get overwritten!

Since my configuration with "defaults" has been applied to similar inventory, 
my best guess is that this caused the problem there too. Now - what to do in 
order to have the variables keep their values for different groups, even if the 
host happens to be the same? And shouldn't it be the case anyway?

-- 
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/34CF4FDC-E7E5-42D4-94B4-CF122CAC7EC8%40srebrnysen.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to