Re: [ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-27 Thread Dan Rough
This is really useful Allen. Thanks! Dynamically including vars files was another option we'd considered. We had discounted it though as we were going to have to litter the include statement throughout our play books and roles which we didn't like. Your dynamic_vars playbook is a neat solution

[ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-26 Thread Allen Sanabria
I use to use group_vars/. Instead I use vars/ now. Since include_vars plugin now supports directories and you can limit the depth of the include. Here is an example on how I manage vars/ today https://github.com/linuxdynasty/ansible-examples/tree/master/playbooks On Wednesday, October 26, 2016

Re: [ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-26 Thread Dan Rough
That's a good idea. Thanks! I hadn't thought of that. That will simplify things in one or two locations. > On 26 Oct 2016, at 22:01, Alexander H. Laughlin > wrote: > > Hi Dan, > > Why not store the values in a dictionary and just pull the values you need > for

[ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-26 Thread Alexander H. Laughlin
Hi Dan, Why not store the values in a dictionary and just pull the values you need for any given server based on its key? Alex On Wednesday, October 26, 2016 at 1:39:21 PM UTC-7, Dan Rough wrote: > > Hi, > > I'd like to know how others are dealing with keeping their group_vars > files