Add kernel version in ansible facts (#40069)

This commit is contained in:
aperigault 2019-08-27 18:57:44 +02:00 committed by Matt Martz
parent b47988a8a4
commit c1c6e9f008

View file

@ -33,6 +33,7 @@ class PlatformFactCollector(BaseFactCollector):
name = 'platform'
_fact_ids = set(['system',
'kernel',
'kernel_version',
'machine',
'python_version',
'architecture',
@ -43,6 +44,7 @@ class PlatformFactCollector(BaseFactCollector):
# platform.system() can be Linux, Darwin, Java, or Windows
platform_facts['system'] = platform.system()
platform_facts['kernel'] = platform.release()
platform_facts['kernel_version'] = platform.version()
platform_facts['machine'] = platform.machine()
platform_facts['python_version'] = platform.python_version()