Included ansible_distribution_major_version #29561 (#31754)

Included ansible_distribution_major_version according with
issue #29561
pull/25180/merge
Kairo Araujo 7 years ago committed by Adam Miller
parent 4391f5c094
commit 7a5ea9cae4

@ -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

Loading…
Cancel
Save