mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Add support for Devuan (#45148)
Devuan is part of Debian family. This fix adds support for Devuan OS. Fixes: #45047 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
617b8df5e6
commit
4e9b8136c2
2 changed files with 32 additions and 1 deletions
|
@ -315,6 +315,15 @@ class DistributionFiles:
|
|||
elif 'SteamOS' in data:
|
||||
debian_facts['distribution'] = 'SteamOS'
|
||||
# nothing else to do, SteamOS gets correct info from python functions
|
||||
elif 'Devuan' in data:
|
||||
debian_facts['distribution'] = 'Devuan'
|
||||
release = re.search(r"PRETTY_NAME=[^(]+ \(?([^)]+?)\)", data)
|
||||
if release:
|
||||
debian_facts['distribution_release'] = release.groups()[0]
|
||||
version = re.search(r"VERSION_ID=\"(.*)\"", data)
|
||||
if version:
|
||||
debian_facts['distribution_version'] = version.group(1)
|
||||
debian_facts['distribution_major_version'] = version.group(1)
|
||||
else:
|
||||
return False, debian_facts
|
||||
|
||||
|
@ -414,7 +423,7 @@ class Distribution(object):
|
|||
'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS',
|
||||
'OEL', 'Amazon', 'Virtuozzo', 'XenServer'],
|
||||
'Debian': ['Debian', 'Ubuntu', 'Raspbian', 'Neon', 'KDE neon',
|
||||
'Linux Mint', 'SteamOS'],
|
||||
'Linux Mint', 'SteamOS', 'Devuan'],
|
||||
'Suse': ['SuSE', 'SLES', 'SLED', 'openSUSE', 'openSUSE Tumbleweed',
|
||||
'SLES_SAP', 'SUSE_LINUX', 'openSUSE Leap'],
|
||||
'Archlinux': ['Archlinux', 'Antergos', 'Manjaro'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue