Fix bug where getting role vars does not follow the dep chain
This bug was introduced in3ced6d3
, where getting vars from a role did not follow the dep chain. This was originally hidden by the fact that we got vars twice (from the block and from the roles directly). Fixes #16729 (cherry picked from commitd8a3feb976
)
This commit is contained in:
parent
35da6ba9d1
commit
ed959d72f1
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ class VariableManager:
|
|||
# vars (which will look at parent blocks/task includes)
|
||||
if task:
|
||||
if task._role:
|
||||
all_vars = combine_vars(all_vars, task._role.get_vars(include_params=False))
|
||||
all_vars = combine_vars(all_vars, task._role.get_vars(task._block._dep_chain, include_params=False))
|
||||
all_vars = combine_vars(all_vars, task.get_vars())
|
||||
|
||||
# next, we merge in the vars cache (include vars) and nonpersistent
|
||||
|
|
Loading…
Reference in a new issue