Additionally template args in role_include that affect role loading (#33386)

This fixes many issues with role_include by correctly templating and
saving fields which affect role loading in the args for the role include.
This commit is contained in:
James Cammarata 2017-11-30 09:52:28 -06:00 committed by Brian Coca
parent 35acae7ea7
commit 52a8644a15
2 changed files with 12 additions and 1 deletions

View file

@ -198,7 +198,7 @@ class StrategyModule(StrategyBase):
new_ir = included_file._task.copy()
new_ir.vars.update(included_file._args)
new_blocks, handler_blocks = new_ir.get_block_list(
new_blocks, handler_blocks = included_file._task.get_block_list(
play=iterator._play,
variable_manager=self._variable_manager,
loader=self._loader,