diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 01f812def7b..dd6d76ff63d 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -108,6 +108,7 @@ class Facts(object): self.facts['python_version'] = platform.python_version() self.facts['fqdn'] = socket.getfqdn() self.facts['hostname'] = platform.node().split('.')[0] + self.facts['full_hostname'] = platform.node() self.facts['domain'] = '.'.join(self.facts['fqdn'].split('.')[1:]) arch_bits = platform.architecture()[0] self.facts['userspace_bits'] = arch_bits.replace('bit', '')