From 31239f44cdfb0497621aa2456a7617d29d7e9091 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 2 Jul 2015 10:33:22 -0400 Subject: [PATCH] Show failed result on a retry message Fixes #10099 --- lib/ansible/executor/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 1bfc88d8f2..6d23548de3 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -265,7 +265,7 @@ class TaskExecutor: for attempt in range(retries): if attempt > 0: # FIXME: this should use the callback/message passing mechanism - print("FAILED - RETRYING: %s (%d retries left)" % (self._task, retries-attempt)) + print("FAILED - RETRYING: %s (%d retries left). Result was: %s" % (self._task, retries-attempt, result)) result['attempts'] = attempt + 1 debug("running the handler")