1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes service update-rc.d functionality on debian

This commit is contained in:
Nace Oroz 2013-10-02 13:53:10 +02:00
parent 8a4310d9b9
commit 672a0c04e4

View file

@ -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)