mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
set CPU architecture correctly for OpenBSD (powerpc not macppc, etc.)
This commit is contained in:
parent
fe0ab8e750
commit
419872373e
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ class Facts(object):
|
||||||
rc, out, err = module.run_command("/usr/sbin/bootinfo -p")
|
rc, out, err = module.run_command("/usr/sbin/bootinfo -p")
|
||||||
data = out.split('\n')
|
data = out.split('\n')
|
||||||
self.facts['architecture'] = data[0]
|
self.facts['architecture'] = data[0]
|
||||||
|
elif self.facts['system'] == 'OpenBSD':
|
||||||
|
self.facts['architecture'] = platform.uname()[5]
|
||||||
|
|
||||||
|
|
||||||
def get_local_facts(self):
|
def get_local_facts(self):
|
||||||
|
|
Loading…
Reference in a new issue