Variables precedence in dependencies

Hello, I have a doubt regarding variables precedence:
I sometimes have the case where role B depends on role A with role A needing a specific variable value.
So in the dependencies file for role B I have something like:

dependencies:

  • { role: role-A, role_a_var1: value1 }

But I’m not sure where this var declaration stands in the precedence list for ansible 2.0+. I’d like this to be stronger than site variables for instance, but less strong than inventory (group and host) variables.
By the way for site variables I mean variables defined somewhere and included at some point in the playbook calling the role, with an include_vars (so playbook level, actually?)

Thanks!

Have you looked at this site, maybe that answer you question
https://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable