From 419872373e54cec09fbfc84f88540391d1787a5e Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Thu, 30 Oct 2014 13:25:50 +0000 Subject: [PATCH] set CPU architecture correctly for OpenBSD (powerpc not macppc, etc.) --- lib/ansible/module_utils/facts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 09332e00be..d9ade72d0f 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -168,6 +168,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):