diff --git a/lib/ansible/modules/system/sysvinit.py b/lib/ansible/modules/system/sysvinit.py index c39e2866ec..a5067838c8 100644 --- a/lib/ansible/modules/system/sysvinit.py +++ b/lib/ansible/modules/system/sysvinit.py @@ -311,7 +311,7 @@ def main(): # FIXME: ERRORS if rc != 0: - module.fail_json(msg="Failed to %s service: %s" % (action, name)) + module.fail_json(msg="Failed to %s service: %s" % (action, name), rc=rc, stdout=out, stderr=err) return (rc, out, err)