diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index b6030440b4b..98f77e68682 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -1397,7 +1397,7 @@ class Darwin(Hardware): rc, out, err = module.run_command("sysctl hw.usermem") if rc == 0: - self.facts['memfree_mb'] = long(out.splitlines()[-1].split()[1]) / 1024 + self.facts['memfree_mb'] = long(out.splitlines()[-1].split()[1]) / 1024 / 1024 class Network(Facts): """