> For this I use group_vars but with the vars/main.yml hack is impossible to override.
- An earlier post with the same or similar question: https://groups.google.com/d/msg/ansible-project/jFf1KfoWxBA/KXmcsQZqAQAJ - Please upvote your favorite solution, in the proposals I gathered in following post: https://github.com/ansible/proposals/pull/21#issuecomment-470048538 On Tuesday, June 19, 2018 at 6:12:07 PM UTC+2, [email protected] wrote: > > Hello there! > > I'm having issues with vars precedence, hope you can help me here. > > I'm currently using geerlingguy.ansible-role-postgresql as a dependency of > my own postgresql role. Is define as a dependency in meta and I'm using > import_role in my main task. > > I was using vars/main.yml on my own role to override the defaults but now > I need to extend my own role a bit like defining diferent variables > depending from which group is the server in the inventory. > > For this I use group_vars but with the vars/main.yml hack is impossible to > override. > > What would be the best practice here? > > Best, > Miracle Max > -- 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/7dd7bd09-1e32-4119-955d-fba395b0d125%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
