Totally agree with @Patrick, who asked this question originally in 2016 
here:
https://groups.google.com/d/msg/ansible-project/jFf1KfoWxBA/SKFl8e0gAQAJ

... and still now satisfying solution exists for us role contributors (that 
care about role portability in larger roles).

That includes *the* contributor himself, geerlingguy, who had done a 
proposal ..where I added a post summarizing the current status (AFAIU):
https://github.com/ansible/proposals/pull/21#issuecomment-470048538

I can understand if the more satisfying solutions could be tricky to 
implement in the ansible core, but then it would be helpful to have an 
estimate of the work required for the various solutions.

Anything else I am missing?  


On Friday, April 13, 2018 at 3:02:45 PM UTC+2, Fink, Patrick wrote:
>
> Thanks, that already helps a lot! Anyway, there are still cases where 
> variables have to be overwritten differently for specific hosts / host 
> groups. So this is still not the overall solution for the issue in general. 
> Regarding the suggestion I made for adding an additional option to 
> include_vars, do you see any disadvantages for adding such a possibility?
>
>  
>
> *From:* ansibl...@googlegroups.com <javascript:> [mailto:
> ansibl...@googlegroups.com <javascript:>] *On Behalf Of *Andrew Gaffney
> *Sent:* Friday, April 13, 2018 2:40 PM
> *To:* Ansible Development
> *Subject:* Re: [ansible-devel] include_vars: Option for preserving 
> existing variables from being overwritten
>
>  
>
> You can pass the path to a YAML file to -e/--extra-vars, which allows them 
> to keep their configuration within a separate file.
>
>  
>
> --extra-vars @path/to/file.yml
>
>
> Andrew Gaffney
>
> agaffney.org
>
>  
>
> On Fri, Apr 13, 2018 at 4:14 AM, <patri...@atos.net <javascript:>> wrote:
>
> I think extra_vars is not a realistic option for configuring everything, 
> as in big projects people have to overwrite many variables and they also 
> want to store their configuration within files to keep the ansible runs 
> reproduceable.
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansibl...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/2d604151-48e0-40fe-a6e4-11e3c2201317%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to