Hello, 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? Thanks for any hint Michael -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9cf95fc0-f73f-4aba-86cf-58ad62ab640d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.