mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing incorrect 'task' variable bug in strategy/__init__.py
This commit is contained in:
parent
d6ebf9bdc6
commit
7a0b25d5fa
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ class StrategyBase:
|
||||||
# find the host we're actually refering too here, which may
|
# find the host we're actually refering too here, which may
|
||||||
# be a host that is not really in inventory at all
|
# be a host that is not really in inventory at all
|
||||||
if original_task.delegate_to is not None and original_task.delegate_facts:
|
if original_task.delegate_to is not None and original_task.delegate_facts:
|
||||||
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
|
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=original_task)
|
||||||
self.add_tqm_variables(task_vars, play=iterator._play)
|
self.add_tqm_variables(task_vars, play=iterator._play)
|
||||||
if item is not None:
|
if item is not None:
|
||||||
task_vars[loop_var] = item
|
task_vars[loop_var] = item
|
||||||
|
|
Loading…
Reference in a new issue