Included ansible_distribution_major_version #29561 (#31754)

Included ansible_distribution_major_version according with
issue #29561
This commit is contained in:
Kairo Araujo 2017-12-14 15:22:48 +01:00 committed by Adam Miller
parent 4391f5c094
commit 7a5ea9cae4

View file

@ -469,6 +469,7 @@ class Distribution(object):
aix_facts = {} aix_facts = {}
rc, out, err = self.module.run_command("/usr/bin/oslevel") rc, out, err = self.module.run_command("/usr/bin/oslevel")
data = out.split('.') data = out.split('.')
aix_facts['distribution_major_version'] = data[0]
aix_facts['distribution_version'] = data[0] aix_facts['distribution_version'] = data[0]
aix_facts['distribution_release'] = data[1] aix_facts['distribution_release'] = data[1]
return aix_facts return aix_facts