mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Sysvinit - Enabling a service should use "defaults" if no runlevels are specified (#48724)
This commit is contained in:
parent
5ad5677b71
commit
90d17924a4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue