From 9fd5d01d67b8c5c4d6e57b4aa4e10d52478c9173 Mon Sep 17 00:00:00 2001 From: Lukas Pirl Date: Mon, 3 Dec 2018 11:29:18 +0100 Subject: [PATCH] ``make`` module: check return code (#47861) --- lib/ansible/modules/system/make.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/make.py b/lib/ansible/modules/system/make.py index 92d90be66ac..43ee8b191d9 100644 --- a/lib/ansible/modules/system/make.py +++ b/lib/ansible/modules/system/make.py @@ -139,8 +139,9 @@ def main(): # do anything changed = False else: - # The target isn't upd to date, so we need to run it - rc, out, err = run_command(base_command, module) + # The target isn't up to date, so we need to run it + rc, out, err = run_command(base_command, module, + check_rc=True) changed = True # We don't report the return code, as if this module failed