From 6a8477229046bb913305763b25da68ccc66f5b2c Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Tue, 5 Dec 2017 23:34:41 -0700 Subject: [PATCH] Add module_stdout/stderr fields to list in 'debug' callback plugin --- lib/ansible/plugins/callback/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/callback/debug.py b/lib/ansible/plugins/callback/debug.py index 247470e1174..4b8c716e7ba 100644 --- a/lib/ansible/plugins/callback/debug.py +++ b/lib/ansible/plugins/callback/debug.py @@ -38,13 +38,13 @@ class CallbackModule(CallbackModule_default): # pylint: disable=too-few-public- result['_ansible_verbose_always'] = True save = {} - for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg']: + for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg', 'module_stdout', 'module_stderr']: if key in result: save[key] = result.pop(key) output = CallbackModule_default._dump_results(self, result) - for key in ['stdout', 'stderr', 'msg']: + for key in ['stdout', 'stderr', 'msg', 'module_stdout', 'module_stderr']: if key in save and save[key]: output += '\n\n%s:\n\n%s\n' % (key.upper(), save[key])