In the role, I am trying to load some variables from another role. (If this role was included in the current game, the variables would be available, but that's not how they are.)
So, I tried this:
- include_vars: ../../another_role/defaults/main.yml
But this does not work, there is no error, but the variables are still undefined. Therefore, I tried to be smart and symbolically refer to the vars/another_role_defaults.yml file in the role where I want to use vars, and then include it as follows:
- include_vars: another_role_defaults.yml
The same result, no errors (why doesn't it throw an error if the file cannot be found?), But the variables are still undefined. I also tried this, for good measure, but still not cigars.
- include_vars: ../vars/another_role_defaults.yml
What am I doing wrong?
source share