mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 16:36:29 +00:00
Fail if "rcctl status" writes to stderr.
This commit is contained in:
@@ -1030,6 +1030,8 @@ class OpenBsdService(Service):
|
||||
else:
|
||||
action = "disable %s" % self.name
|
||||
if rc == 1:
|
||||
if stderr:
|
||||
self.module.fail_json(msg=stderr)
|
||||
return
|
||||
|
||||
if self.module.check_mode:
|
||||
|
||||
Reference in New Issue
Block a user