From 90d17924a46f6bd3a1c01bf6f49ac8a91c63fa71 Mon Sep 17 00:00:00 2001 From: nervo Date: Thu, 15 Nov 2018 15:53:10 +0100 Subject: [PATCH] Sysvinit - Enabling a service should use "defaults" if no runlevels are specified (#48724) --- lib/ansible/modules/system/sysvinit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/sysvinit.py b/lib/ansible/modules/system/sysvinit.py index c3a3932c35..07a8c6fc89 100644 --- a/lib/ansible/modules/system/sysvinit.py +++ b/lib/ansible/modules/system/sysvinit.py @@ -267,7 +267,7 @@ def main(): # Perform enable/disable here if enabled: if location.get('update-rc.d'): - (rc, out, err) = module.run_command("%s %s enable" % (location['update-rc.d'], name)) + (rc, out, err) = module.run_command("%s %s defaults" % (location['update-rc.d'], name)) elif location.get('chkconfig'): (rc, out, err) = module.run_command("%s %s on" % (location['chkconfig'], name)) else: