mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Make sure we're using the original host when processing include results
Also fixes a bug where we were passing an incorrect number of parameters to _do_handler_run() when processing an include file in a handler task/block. Fixes #13560
This commit is contained in:
@@ -576,6 +576,7 @@ class StrategyBase:
|
||||
host_results,
|
||||
self._tqm,
|
||||
iterator=iterator,
|
||||
inventory=self._inventory,
|
||||
loader=self._loader,
|
||||
variable_manager=self._variable_manager
|
||||
)
|
||||
@@ -594,6 +595,7 @@ class StrategyBase:
|
||||
for task in block.block:
|
||||
result = self._do_handler_run(
|
||||
handler=task,
|
||||
handler_name=None,
|
||||
iterator=iterator,
|
||||
play_context=play_context,
|
||||
notified_hosts=included_file._hosts[:],
|
||||
|
||||
Reference in New Issue
Block a user