Projects
Eulaceura:Mainline
ansible
_service:obs_scm:hostname-module-support-openEu...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:hostname-module-support-openEuler.patch of Package ansible
diff --git a/lib/ansible/module_utils/facts/system/distribution.py b/lib/ansible/module_utils/facts/system/distribution.py index 6a93988f..c3184142 100644 --- a/lib/ansible/module_utils/facts/system/distribution.py +++ b/lib/ansible/module_utils/facts/system/distribution.py @@ -467,7 +467,7 @@ class Distribution(object): OS_FAMILY_MAP = {'RedHat': ['RedHat', 'Fedora', 'CentOS', 'Scientific', 'SLC', 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL', 'Amazon', 'Virtuozzo', 'XenServer', 'Alibaba', - 'AlmaLinux', 'Rocky'], + 'AlmaLinux', 'Rocky', 'openEuler'], 'Debian': ['Debian', 'Ubuntu', 'Raspbian', 'Neon', 'KDE neon', 'Linux Mint', 'SteamOS', 'Devuan', 'Kali', 'Cumulus Linux'], 'Suse': ['SuSE', 'SLES', 'SLED', 'openSUSE', 'openSUSE Tumbleweed', diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 3315cec8..c01d1e62 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -787,6 +787,11 @@ class RockyLinuxHostname(Hostname): distribution = 'Rocky' strategy_class = SystemdStrategy +class OpenEulerHostname(Hostname): + platform = 'Linux' + distribution = 'Openeuler' + strategy_class = SystemdStrategy + def main(): module = AnsibleModule( argument_spec=dict( -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2