mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Switch up the task/host overrides for PlayContext to use the compiled vars dict
Fixes #11436
This commit is contained in:
parent
2d2ec058c8
commit
42cfacf83b
3 changed files with 5 additions and 36 deletions
|
@ -111,7 +111,7 @@ class WorkerProcess(multiprocessing.Process):
|
|||
# apply the given task's information to the connection info,
|
||||
# which may override some fields already set by the play or
|
||||
# the options specified on the command line
|
||||
new_play_context = play_context.set_task_and_host_override(task=task, host=host)
|
||||
new_play_context = play_context.set_task_and_variable_override(task=task, variables=job_vars)
|
||||
|
||||
# execute the task and build a TaskResult from the result
|
||||
debug("running TaskExecutor() for %s/%s" % (host, task))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue