|
|
@ -46,9 +46,6 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
|
|
self._display.display(msg, color=C.COLOR_ERROR)
|
|
|
|
self._display.display(msg, color=C.COLOR_ERROR)
|
|
|
|
|
|
|
|
|
|
|
|
# finally, remove the exception from the result so it's not shown every time
|
|
|
|
|
|
|
|
del result._result['exception']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if result._task.loop and 'results' in result._result:
|
|
|
|
if result._task.loop and 'results' in result._result:
|
|
|
|
self._process_items(result)
|
|
|
|
self._process_items(result)
|
|
|
|
|
|
|
|
|
|
|
@ -193,9 +190,6 @@ class CallbackModule(CallbackBase):
|
|
|
|
|
|
|
|
|
|
|
|
self._display.display(msg, color=C.COLOR_ERROR)
|
|
|
|
self._display.display(msg, color=C.COLOR_ERROR)
|
|
|
|
|
|
|
|
|
|
|
|
# finally, remove the exception from the result so it's not shown every time
|
|
|
|
|
|
|
|
del result._result['exception']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msg = "failed: "
|
|
|
|
msg = "failed: "
|
|
|
|
if delegated_vars:
|
|
|
|
if delegated_vars:
|
|
|
|
msg += "[%s -> %s]" % (result._host.get_name(), delegated_vars['ansible_host'])
|
|
|
|
msg += "[%s -> %s]" % (result._host.get_name(), delegated_vars['ansible_host'])
|
|
|
|