Hi Giovanni!

Thanks for your reply.

Even if I could rename the "ram" variable (the example is totally 
artificial):

1)
I would need to add groups like:

[web:children]
prod-web
dev-web


[db:children] 

prod-db

dev-db 

 

[prod:children]
prod-web
prod-db


[dev:children] 
dev-web
dev-db 

 

And group(-vars) preference is alphabetically! I.e. "db" has a higher 
precedence as "prod". Ross Tuck (see [1] above)
has discussed the same solution.

2)
This still leads to quite some repetition, because I need to set the same 
value in dev & test & stage (and I might even have multiple dev & test 
environments). And whenever I need to add a variable, I have to remember to 
add to all these files. 



>

-- 
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/936bdb83-4396-444b-a869-881dd8d90145%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to