Add simpleinit_msb fact for service_mgr (#80963)

* Add simpleinit_msb fact for service_mgr
pull/80993/head
Vlad Glagolev 1 year ago committed by GitHub
parent fda66eeee0
commit c511a79172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- Update ``ansible_service_mgr`` fact to include init system for SMGL OS family

@ -131,6 +131,8 @@ class ServiceMgrFactCollector(BaseFactCollector):
service_mgr_name = 'smf'
elif collected_facts.get('ansible_distribution') == 'OpenWrt':
service_mgr_name = 'openwrt_init'
elif collected_facts.get('ansible_distribution') == 'SMGL':
service_mgr_name = 'simpleinit_msb'
elif collected_facts.get('ansible_system') == 'Linux':
# FIXME: mv is_systemd_managed
if self.is_systemd_managed(module=module):

Loading…
Cancel
Save