mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00: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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user