mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #4336 from orkaa/devel
Fixes service update-rc.d functionality on debian
This commit is contained in:
commit
f6c3dce497
1 changed files with 6 additions and 0 deletions
|
@ -634,6 +634,12 @@ class LinuxService(Service):
|
||||||
self.changed = True
|
self.changed = True
|
||||||
break
|
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:
|
if self.module.check_mode:
|
||||||
self.module.exit_json(changed=self.changed)
|
self.module.exit_json(changed=self.changed)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue