Hello,
there is a quite simple setup I am sure many of us came across this:
- you have lean, slim and dedicate Roles
- every role has its own role vars
- 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?
Thanks for any hint
Michael