1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Teach setup about OpenBSD package manager.

* We cannot depend on the path because FreeBSD for example uses the same path.
This commit is contained in:
Patrik Lundin 2013-03-03 00:02:50 +01:00
parent eb6398f168
commit f485eb28f5

View file

@ -245,6 +245,8 @@ class Facts(object):
for pkg in Facts.PKG_MGRS:
if os.path.exists(pkg['path']):
self.facts['pkg_mgr'] = pkg['name']
if self.facts['system'] == 'OpenBSD':
self.facts['pkg_mgr'] = 'openbsd_pkg'
def get_lsb_facts(self):
lsb_path = module.get_bin_path('lsb_release')