|
|
@ -131,7 +131,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self._clean_results(result._result, result._task.action)
|
|
|
|
self._clean_results(result._result, result._task.action)
|
|
|
|
|
|
|
|
|
|
|
|
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
|
|
|
if self._run_is_verbose(result):
|
|
|
|
msg += " => %s" % (self._dump_results(result._result),)
|
|
|
|
msg += " => %s" % (self._dump_results(result._result),)
|
|
|
|
self._display.display(msg, color=color)
|
|
|
|
self._display.display(msg, color=color)
|
|
|
|
|
|
|
|
|
|
|
@ -148,7 +148,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
self._process_items(result)
|
|
|
|
self._process_items(result)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
msg = "skipping: [%s]" % result._host.get_name()
|
|
|
|
msg = "skipping: [%s]" % result._host.get_name()
|
|
|
|
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
|
|
|
if self._run_is_verbose(result):
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
self._display.display(msg, color=C.COLOR_SKIP)
|
|
|
|
self._display.display(msg, color=C.COLOR_SKIP)
|
|
|
|
|
|
|
|
|
|
|
@ -287,7 +287,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
|
|
msg += " => (item=%s)" % (self._get_item_label(result._result),)
|
|
|
|
msg += " => (item=%s)" % (self._get_item_label(result._result),)
|
|
|
|
|
|
|
|
|
|
|
|
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
|
|
|
if self._run_is_verbose(result):
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
self._display.display(msg, color=color)
|
|
|
|
self._display.display(msg, color=color)
|
|
|
|
|
|
|
|
|
|
|
@ -315,7 +315,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
|
|
self._clean_results(result._result, result._task.action)
|
|
|
|
self._clean_results(result._result, result._task.action)
|
|
|
|
msg = "skipping: [%s] => (item=%s) " % (result._host.get_name(), self._get_item_label(result._result))
|
|
|
|
msg = "skipping: [%s] => (item=%s) " % (result._host.get_name(), self._get_item_label(result._result))
|
|
|
|
if (self._display.verbosity > 0 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
|
|
|
if self._run_is_verbose(result):
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
msg += " => %s" % self._dump_results(result._result)
|
|
|
|
self._display.display(msg, color=C.COLOR_SKIP)
|
|
|
|
self._display.display(msg, color=C.COLOR_SKIP)
|
|
|
|
|
|
|
|
|
|
|
@ -397,7 +397,7 @@ class CallbackModule(CallbackBase):
|
|
|
|
def v2_runner_retry(self, result):
|
|
|
|
def v2_runner_retry(self, result):
|
|
|
|
task_name = result.task_name or result._task
|
|
|
|
task_name = result.task_name or result._task
|
|
|
|
msg = "FAILED - RETRYING: %s (%d retries left)." % (task_name, result._result['retries'] - result._result['attempts'])
|
|
|
|
msg = "FAILED - RETRYING: %s (%d retries left)." % (task_name, result._result['retries'] - result._result['attempts'])
|
|
|
|
if (self._display.verbosity > 2 or '_ansible_verbose_always' in result._result) and '_ansible_verbose_override' not in result._result:
|
|
|
|
if self._run_is_verbose(result, verbosity=2):
|
|
|
|
msg += "Result was: %s" % self._dump_results(result._result)
|
|
|
|
msg += "Result was: %s" % self._dump_results(result._result)
|
|
|
|
self._display.display(msg, color=C.COLOR_DEBUG)
|
|
|
|
self._display.display(msg, color=C.COLOR_DEBUG)
|
|
|
|
|
|
|
|
|
|
|
|