mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Make sure run_once tasks properly set variables for all active hosts
Fixes #13267
This commit is contained in:
parent
fbc9553bd4
commit
80db6bacc4
2 changed files with 29 additions and 14 deletions
|
@ -110,7 +110,7 @@ class ResultProcess(multiprocessing.Process):
|
|||
|
||||
# if this task is registering a result, do it now
|
||||
if result._task.register:
|
||||
self._send_result(('register_host_var', result._host, result._task.register, clean_copy))
|
||||
self._send_result(('register_host_var', result._host, result._task, clean_copy))
|
||||
|
||||
# send callbacks, execute other options based on the result status
|
||||
# TODO: this should all be cleaned up and probably moved to a sub-function.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue