From 52960ff7d051645244f7005b3c9697b72f3fb23a Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sat, 11 Feb 2017 12:26:38 +0100 Subject: [PATCH] Fix service_mgr fact for Solaris; svcs is used to list services. Instead use 'smf' to reflect the name of framework, as is done elsewhere (e.g. 'systemd' instead of 'systemctl'). --- lib/ansible/module_utils/facts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 6ede1fa21c..91e951eaf3 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -385,8 +385,7 @@ class Facts(object): elif self.facts['system'] == 'AIX': self.facts['service_mgr'] = 'src' elif self.facts['system'] == 'SunOS': - #FIXME: smf? - self.facts['service_mgr'] = 'svcs' + self.facts['service_mgr'] = 'smf' elif self.facts['distribution'] == 'OpenWrt': self.facts['service_mgr'] = 'openwrt_init' elif self.facts['system'] == 'Linux':