OMG! 
I complete over saw this. Thanks a lot!

Am Dienstag, 12. Dezember 2017 20:57:03 UTC+1 schrieb Kai Stian Olstad:
>
> On Tuesday, 12 December 2017 20.46.26 CET [email protected] <javascript:> 
> wrote: 
> > there is a quite simple setup I am sure many of us came across this: 
> > 1. you have lean, slim and dedicate Roles 
> > 2. every role has its own role vars 
> > 3. playbooks include the roles 
> > 
> > Up to this point nothing spezial 
> > 
> > Now: lest assume you have an base path for an application, most likely 
> you 
> > will need this path in many roles. 
> > To keep the roles independent you would define this base path in every 
> role 
> > vars where needed 
> > Hm, now you include some roles in a playbook and in case of a change on 
> > e.g. the base path you need to change that in every role 
> > 
> > One help would be to use extra vars to overrule the role vars But what 
> if 
> > there are many potential candidates for a change?? 
> > 
> > 
> > So I would like to be able to include vars in a playbook to overrule the 
> > variables in the roles. But this is not possible 
> > a) include_vars is not allowed in playbooks 
> > b) var_files (what would work in playbooks) will be over written by role 
> > vars 
> > 
> > 
> > Good question: how do you do solve this situation??  May be I want 
> > something odd and there is a much simpler way? 
>
> Use defaults and not the vars folder in the role, then you can overwrite 
> the variable anywhere you like. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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/20855f90-8300-4cb7-a2e0-55fc9bbc45da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to