From bda83fdf84068bcd3720f5c6d82c21a7d5e66594 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sun, 22 Mar 2015 19:17:04 -0500 Subject: [PATCH] Fixing bug in v2 dynamic include code, pointed out by apollo13 --- v2/ansible/plugins/strategies/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/ansible/plugins/strategies/linear.py b/v2/ansible/plugins/strategies/linear.py index c6b9445b2e..b503d6ebd5 100644 --- a/v2/ansible/plugins/strategies/linear.py +++ b/v2/ansible/plugins/strategies/linear.py @@ -236,7 +236,7 @@ class StrategyModule(StrategyBase): for include_result in include_results: original_task = iterator.get_original_task(res._host, res._task) if original_task and original_task._role: - include_file = self._loader.path_dwim_relative(original_task._role._role_path, 'tasks', include_file) + include_file = self._loader.path_dwim_relative(original_task._role._role_path, 'tasks', include_result['include']) else: include_file = self._loader.path_dwim(res._task.args.get('_raw_params'))