Re: [ansible-project] In a large enviroment, with duplicated stacks, why use group_vars and host_vars instead of vars_files ?

2014-07-24 Thread Michael DeHaan
If your variable information is about multiple hosts, it belongs in group_vars not host_vars. Consider applying more groups if you wish to include them. vars_files is definitely subscribed, but most people set variables in roles now, rather than in the play at the top. You are welcome to use wha

Re: [ansible-project] In a large enviroment, with duplicated stacks, why use group_vars and host_vars instead of vars_files ?

2014-07-24 Thread Luca Carboni
I like group_vars and host_vars. Using group_vars and host_vars, we have a lot of files for hosts. But, if we use group_vars, and vars_files, we can reduce drastically the number of files, in one or two file, one for credentials and one for other variables . vars_files are not described in be

Re: [ansible-project] In a large enviroment, with duplicated stacks, why use group_vars and host_vars instead of vars_files ?

2014-07-23 Thread Michael DeHaan
Not understanding the question but we really love group_vars/ and host_vars/ a lot here. vars_files is more like if your play wants to bring in variables for that specific play, rather than describing info about those hosts. On Wed, Jul 23, 2014 at 12:07 PM, Luca Carboni wrote: > Hi all, > I

[ansible-project] In a large enviroment, with duplicated stacks, why use group_vars and host_vars instead of vars_files ?

2014-07-23 Thread Luca Carboni
Hi all, I'm fine tuning roles for our farm. we started with group_vars and host_vars, but it results dispersive, lot of file in group_vars and more important number of files in host_vars. We changed all to use vars_files, and now we have 2 files, one for credentials and one for all the other v