diff --git a/library/command b/library/command index 31b253cda53..d7b18258a65 100755 --- a/library/command +++ b/library/command @@ -111,8 +111,8 @@ def main(): module.exit_json( cmd = args, - stdout = out.strip(), - stderr = err.strip(), + stdout = out.rstrip("\r\n"), + stderr = err.rstrip("\r\n"), rc = cmd.returncode, start = str(startd), end = str(endd),