Commit 672a0c04 by Nace Oroz

Fixes service update-rc.d functionality on debian

parent 8a4310d9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment