From c511a791728a8711a75b0b5d54b4448de4bc075c Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Wed, 7 Jun 2023 09:07:08 -0700 Subject: [PATCH] Add simpleinit_msb fact for service_mgr (#80963) * Add simpleinit_msb fact for service_mgr --- changelogs/fragments/service_facts_simpleinit_msb.yml | 2 ++ lib/ansible/module_utils/facts/system/service_mgr.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/service_facts_simpleinit_msb.yml diff --git a/changelogs/fragments/service_facts_simpleinit_msb.yml b/changelogs/fragments/service_facts_simpleinit_msb.yml new file mode 100644 index 00000000000..2b8047e2df5 --- /dev/null +++ b/changelogs/fragments/service_facts_simpleinit_msb.yml @@ -0,0 +1,2 @@ +minor_changes: + - Update ``ansible_service_mgr`` fact to include init system for SMGL OS family diff --git a/lib/ansible/module_utils/facts/system/service_mgr.py b/lib/ansible/module_utils/facts/system/service_mgr.py index 3c42fa600f9..701def99c0b 100644 --- a/lib/ansible/module_utils/facts/system/service_mgr.py +++ b/lib/ansible/module_utils/facts/system/service_mgr.py @@ -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):