mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
remove uneeded module
This commit is contained in:
@@ -575,7 +575,7 @@ class Facts(object):
|
|||||||
self.facts['service_mgr'] = 'svcs'
|
self.facts['service_mgr'] = 'svcs'
|
||||||
elif self.facts['system'] == 'Linux':
|
elif self.facts['system'] == 'Linux':
|
||||||
|
|
||||||
if self._check_systemd(module):
|
if self._check_systemd():
|
||||||
self.facts['service_mgr'] = 'systemd'
|
self.facts['service_mgr'] = 'systemd'
|
||||||
elif module.get_bin_path('initctl') and os.path.exists("/etc/init/"):
|
elif module.get_bin_path('initctl') and os.path.exists("/etc/init/"):
|
||||||
self.facts['service_mgr'] = 'upstart'
|
self.facts['service_mgr'] = 'upstart'
|
||||||
|
|||||||
Reference in New Issue
Block a user