From 0c0defb63da1c9ee9929923116a223a4eaa1b45a Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Sun, 25 Dec 2016 13:43:29 +0100 Subject: [PATCH] Recognize pkgin when installed in the global zone on SmartOS --- lib/ansible/module_utils/facts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 92d1d5b6fa..066143defe 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -145,6 +145,7 @@ class Facts(object): { 'path' : '/bin/opkg', 'name' : 'opkg' }, { 'path' : '/usr/pkg/bin/pkgin', 'name' : 'pkgin' }, { 'path' : '/opt/local/bin/pkgin', 'name' : 'pkgin' }, + { 'path' : '/opt/tools/bin/pkgin', 'name' : 'pkgin' }, { 'path' : '/opt/local/bin/port', 'name' : 'macports' }, { 'path' : '/usr/local/bin/brew', 'name' : 'homebrew' }, { 'path' : '/sbin/apk', 'name' : 'apk' }, @@ -2247,7 +2248,7 @@ class Darwin(Hardware): class HurdHardware(LinuxHardware): """ GNU Hurd specific subclass of Hardware. Define memory and mount facts - based on procfs compatibility translator mimicking the interface of + based on procfs compatibility translator mimicking the interface of the Linux kernel. """ @@ -3016,7 +3017,7 @@ class NetBSDNetwork(GenericBsdIfconfigNetwork): """ platform = 'NetBSD' - def parse_media_line(self, words, current_if, ips): + def parse_media_line(self, words, current_if, ips): # example of line: # $ ifconfig # ne0: flags=8863 mtu 1500