summaryrefslogtreecommitdiff
path: root/lib/ansible/executor
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2019-06-20 09:17:50 -0500
committerToshio Kuratomi <a.badger@gmail.com>2019-06-20 18:21:53 -0700
commit5e0c623f38cdafa342c5a2c25b511d67c7e3d2cf (patch)
tree09ce3349362f91373460b25b02fcc9c468559604 /lib/ansible/executor
parent169dfc807e9fd0760d5bd560e24f9c5c3d3b80e6 (diff)
downloadansible-5e0c623f38cdafa342c5a2c25b511d67c7e3d2cf.tar.gz
[stable-2.8] Create new instance of the action plugin per until iteration. Fixes #57886 (#58022)
(cherry picked from commit ffd1171) Co-authored-by: Matt Martz <matt@sivel.net>
Diffstat (limited to 'lib/ansible/executor')
-rw-r--r--lib/ansible/executor/task_executor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py
index 8c9213d805..7db2a15ed6 100644
--- a/lib/ansible/executor/task_executor.py
+++ b/lib/ansible/executor/task_executor.py
@@ -739,6 +739,7 @@ class TaskExecutor:
display.debug('Retrying task, attempt %d of %d' % (attempt, retries))
self._final_q.put(TaskResult(self._host.name, self._task._uuid, result, task_fields=self._task.dump_attrs()), block=False)
time.sleep(delay)
+ self._handler = self._get_action_handler(connection=self._connection, templar=templar)
else:
if retries > 1:
# we ran out of attempts, so mark the result as failed