mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
set ansible_os_family from name variable in os-release for clearlinux OS (#49639)
* set ansible_os_family from name variable in os-release for clearlinux system Signed-off-by: Josue David Hernandez Gutierrez <josue.d.hernandez.gutierrez@intel.com> * Add os_family for clear linux and clear linux mixes Signed-off-by: Josue David Hernandez Gutierrez <josue.d.hernandez.gutierrez@intel.com>
This commit is contained in:
committed by
ansibot
parent
935fa51143
commit
9202ef60b0
@@ -390,6 +390,9 @@ class DistributionFiles:
|
||||
release = re.search('ID=(.*)', data)
|
||||
if release:
|
||||
clear_facts['distribution_release'] = release.groups()[0]
|
||||
pname = re.search('NAME="(.*)"', data)
|
||||
if pname:
|
||||
clear_facts['distribution'] = pname.groups()[0]
|
||||
return True, clear_facts
|
||||
|
||||
|
||||
@@ -454,7 +457,8 @@ class Distribution(object):
|
||||
'AIX': ['AIX'],
|
||||
'HP-UX': ['HPUX'],
|
||||
'Darwin': ['MacOSX'],
|
||||
'FreeBSD': ['FreeBSD', 'TrueOS']}
|
||||
'FreeBSD': ['FreeBSD', 'TrueOS'],
|
||||
'ClearLinux': ['Clear Linux OS', 'Clear Linux Mix']}
|
||||
|
||||
OS_FAMILY = {}
|
||||
for family, names in OS_FAMILY_MAP.items():
|
||||
|
||||
Reference in New Issue
Block a user