mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing bug in v2 dynamic include code, pointed out by apollo13
This commit is contained in:
parent
c5d5ed17ea
commit
bda83fdf84
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ class StrategyModule(StrategyBase):
|
||||||
for include_result in include_results:
|
for include_result in include_results:
|
||||||
original_task = iterator.get_original_task(res._host, res._task)
|
original_task = iterator.get_original_task(res._host, res._task)
|
||||||
if original_task and original_task._role:
|
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:
|
else:
|
||||||
include_file = self._loader.path_dwim(res._task.args.get('_raw_params'))
|
include_file = self._loader.path_dwim(res._task.args.get('_raw_params'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue