On Aug 7, 2014, at 10:18 AM, Jesse Keating <[email protected]> wrote:
> 
> I've got a situation where I'm applying roles to a system locally, much in 
> the style of ansible-pull. The role has a number of defaults, but I wish to 
> override those defaults with custom details specific to this particular 
> environment. My wish is to provide those overrides via an external file to 
> the role, something we can iterate on without having to change the role code 
> itself (as it is distributed through a different method).
> 
> I'm looking for ideas on how to make this work. I had originally thought to 
> make use of ansible local facts, in /etc/ansible/facts.d/*.fact files However 
> that results in variables named ansible.local.<filename>.<blockname>.<key>  
> which obviously cannot override a role default as-is.
> 
> Any thoughts you all might have would be appreciated!
> 
> -jlk

and having just sent this, I remembered about include_vars, which I could put 
in my role's entry point to load variables from an external file. That would 
likely work, but I'm still curious how others would solve this issue.

-jlk

-- 
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/FD0976BA-5969-42F4-B0C4-8850AD5325C2%40j2solutions.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to