I know this is a long answer, but I just found a workable solution, and that is a little sneaky.
I use the third role settings , which has no tasks, only variables in defaults/main.yml . The docs are a bit vague in this matter, but the values here become corrugated to all the dependent roles, so if both roles depend on settings through their meta/main.yml , both get a common set of values. They can be overridden in the usual way using the group_vars file.
The surprise for me was that, since, yes, the settings role is used more than once, it does not matter, because it has no tasks, and this data can flow from there into the dependency chain.
This is a completely new form of data flow in Ansible that I did not know was possible.
source share