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:
parent
eb6398f168
commit
f485eb28f5
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue