mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add support for ClearLinux
* Set ansible_os_family to 'ClearLinux' * Set ansible_distribution to 'ClearLinux' * Add swupd.py plugin Fixes #20824 Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
This commit is contained in:
committed by
Brian Coca
parent
5aac2a4240
commit
108b5fc502
@@ -156,6 +156,7 @@ class Facts(object):
|
||||
{ 'path' : '/usr/bin/pkg', 'name' : 'pkg' },
|
||||
{ 'path' : '/usr/bin/xbps-install','name' : 'xbps' },
|
||||
{ 'path' : '/usr/local/sbin/pkg', 'name' : 'pkgng' },
|
||||
{ 'path' : '/usr/bin/swupd', 'name' : 'swupd' },
|
||||
]
|
||||
|
||||
def __init__(self, module, load_on_init=True, cached_facts=None):
|
||||
@@ -654,12 +655,14 @@ class Distribution(object):
|
||||
{'path': '/etc/altlinux-release', 'name': 'Altlinux'},
|
||||
{'path': '/etc/os-release', 'name': 'NA'},
|
||||
{'path': '/etc/coreos/update.conf', 'name': 'Coreos'},
|
||||
{'path': '/usr/lib/os-release', 'name': 'ClearLinux'},
|
||||
)
|
||||
|
||||
SEARCH_STRING = {
|
||||
'OracleLinux': 'Oracle Linux',
|
||||
'RedHat': 'Red Hat',
|
||||
'Altlinux': 'ALT Linux',
|
||||
'ClearLinux': 'Clear Linux Software for Intel Architecture',
|
||||
}
|
||||
|
||||
# A list with OS Family members
|
||||
|
||||
Reference in New Issue
Block a user