From 672a0c04e42f34daea22a946eabdcfcc8e691523 Mon Sep 17 00:00:00 2001 From: Nace Oroz Date: Wed, 2 Oct 2013 13:53:10 +0200 Subject: [PATCH] Fixes service update-rc.d functionality on debian --- library/system/service | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/system/service b/library/system/service index 478a59a58f..4529d6a3cc 100644 --- a/library/system/service +++ b/library/system/service @@ -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)