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
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
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
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