diff --git a/system/service.py b/system/service.py index d708a848bd3..e17eb610872 100644 --- a/system/service.py +++ b/system/service.py @@ -989,6 +989,9 @@ class OpenBsdService(Service): if rc == 1: return + if self.module.check_mode: + self.module.exit_json(changed=True, msg="changing service enablement") + # XXX check rc ? rc, stdout, stderr = self.execute_command("%s %s" % (self.enable_cmd, action)) self.changed = True