diff --git a/changelogs/fragments/1574-make-question.yaml b/changelogs/fragments/1574-make-question.yaml new file mode 100644 index 0000000000..b2590f3e5b --- /dev/null +++ b/changelogs/fragments/1574-make-question.yaml @@ -0,0 +1,2 @@ +bugfixes: + - make - fixed ``make`` parameter used for check mode when running a non-GNU ``make`` (https://github.com/ansible-collections/community.general/pull/1574). diff --git a/plugins/modules/system/make.py b/plugins/modules/system/make.py index c8d4107c6f..7314af2809 100644 --- a/plugins/modules/system/make.py +++ b/plugins/modules/system/make.py @@ -136,7 +136,7 @@ def main(): base_command.extend(make_parameters) # Check if the target is already up to date - rc, out, err = run_command(base_command + ['--question'], module, check_rc=False) + rc, out, err = run_command(base_command + ['-q'], module, check_rc=False) if module.check_mode: # If we've been asked to do a dry run, we only need # to report whether or not the target is up to date