mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fixes service update-rc.d functionality on debian
This commit is contained in:
@@ -633,6 +633,12 @@ class LinuxService(Service):
|
||||
self.changed = True
|
||||
break
|
||||
|
||||
# Debian compatibility
|
||||
for line in err.splitlines():
|
||||
if self.enable and line.find('no runlevel symlinks to modify') != -1:
|
||||
self.changed = True
|
||||
break
|
||||
|
||||
if self.module.check_mode:
|
||||
self.module.exit_json(changed=self.changed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user