mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
If the module return is not parsed, always show stderr information even if -D (debug)
is not specified. This will help for users that don't have prerequisites installed (like python-simplejson on old RHEL) and do not know to run -D.
This commit is contained in:
parent
a5df306aa3
commit
09a0b9bea8
1 changed files with 3 additions and 2 deletions
|
@ -640,7 +640,8 @@ class Runner(object):
|
||||||
else:
|
else:
|
||||||
self.callbacks.on_ok(host, data)
|
self.callbacks.on_ok(host, data)
|
||||||
|
|
||||||
if self.debug and err:
|
if err:
|
||||||
|
if self.debug or data.get('parsed', True) == False:
|
||||||
self.callbacks.on_error(host, err)
|
self.callbacks.on_error(host, err)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue