mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
More descriptive error message if init system is unknown
This commit is contained in:
@@ -565,7 +565,7 @@ class LinuxService(Service):
|
||||
def service_enable(self):
|
||||
|
||||
if self.enable_cmd is None:
|
||||
self.module.fail_json(msg='service name not recognized')
|
||||
self.module.fail_json(msg='unknown init system, cannot enable service')
|
||||
|
||||
# FIXME: we use chkconfig or systemctl
|
||||
# to decide whether to run the command here but need something
|
||||
|
||||
Reference in New Issue
Block a user