diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 2413821ce2..17e7c62f83 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -174,6 +174,8 @@ class Facts(object): rc, out, err = module.run_command("/usr/sbin/bootinfo -p") data = out.split('\n') self.facts['architecture'] = data[0] + elif self.facts['system'] == 'OpenBSD': + self.facts['architecture'] = platform.uname()[5] def get_local_facts(self):