This bug was introduced in 3ced6d3, 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
3ced6d3