diff --git a/plugins/modules/launchd.py b/plugins/modules/launchd.py index 64a1375a40..a2abcafdac 100644 --- a/plugins/modules/launchd.py +++ b/plugins/modules/launchd.py @@ -501,6 +501,9 @@ def main(): # Run the requested task if not module.check_mode: state, pid, status_code, err = tasks[action].run() + # restarted and reloaded always perform commands unconditionally, so they always change state + if action in ("restarted", "reloaded"): + result["changed"] = True result["status"]["current_state"] = ServiceState.to_string(state) result["status"]["current_pid"] = pid