diff --git a/changelogs/fragments/fix_sysvinit_typo.yml b/changelogs/fragments/fix_sysvinit_typo.yml new file mode 100644 index 0000000000..9b727b9772 --- /dev/null +++ b/changelogs/fragments/fix_sysvinit_typo.yml @@ -0,0 +1,2 @@ +bugfixes: + - fix typoe in sysvinit that breaks update.rc-d detection https://github.com/ansible/ansible/issues/42734 diff --git a/lib/ansible/modules/system/sysvinit.py b/lib/ansible/modules/system/sysvinit.py index 5fb5c372fe..6cefb5aebb 100644 --- a/lib/ansible/modules/system/sysvinit.py +++ b/lib/ansible/modules/system/sysvinit.py @@ -155,7 +155,7 @@ def main(): # locate binaries for service management paths = ['/sbin', '/usr/sbin', '/bin', '/usr/bin'] - binaries = ['chkconfig', ' update-rc.d', 'insserv', 'service'] + binaries = ['chkconfig', 'update-rc.d', 'insserv', 'service'] # Keeps track of the service status for various runlevels because we can # operate on multiple runlevels at once