diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index e8e315d8e6d..031b495f51d 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -421,7 +421,6 @@ class LinuxService(Service): if not location.get('systemctl', False): return False - systemd_enabled = False # Check if init is the systemd command, using comm as cmdline could be symlink try: f = open('/proc/1/comm', 'r')