From 0845e902b3b020902213499a050ba6ec40d5da6a Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 14 Aug 2023 17:43:04 +0300 Subject: [PATCH] Added MSVSphere support --- SOURCES/0001-Added-MSVSphere-support.patch | 25 ++++++++++++++++++++++ SPECS/ansible-core.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0001-Added-MSVSphere-support.patch diff --git a/SOURCES/0001-Added-MSVSphere-support.patch b/SOURCES/0001-Added-MSVSphere-support.patch new file mode 100644 index 0000000..c30cd2f --- /dev/null +++ b/SOURCES/0001-Added-MSVSphere-support.patch @@ -0,0 +1,25 @@ +From c6a476cabf999c92b2e776fdaa7d1853ee57d027 Mon Sep 17 00:00:00 2001 +From: tigro +Date: Mon, 14 Aug 2023 17:40:06 +0300 +Subject: [PATCH] Added MSVSphere support + +--- + lib/ansible/module_utils/facts/system/distribution.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/ansible/module_utils/facts/system/distribution.py b/lib/ansible/module_utils/facts/system/distribution.py +index dcb6e5a..bab748b 100644 +--- a/lib/ansible/module_utils/facts/system/distribution.py ++++ b/lib/ansible/module_utils/facts/system/distribution.py +@@ -513,7 +513,7 @@ class Distribution(object): + 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', + 'OEL', 'Amazon', 'Virtuozzo', 'XenServer', 'Alibaba', + 'EulerOS', 'openEuler', 'AlmaLinux', 'Rocky', 'TencentOS', +- 'EuroLinux', 'Kylin Linux Advanced Server'], ++ 'EuroLinux', 'Kylin Linux Advanced Server', 'MSVSphere'], + 'Debian': ['Debian', 'Ubuntu', 'Raspbian', 'Neon', 'KDE neon', + 'Linux Mint', 'SteamOS', 'Devuan', 'Kali', 'Cumulus Linux', + 'Pop!_OS', 'Parrot', 'Pardus GNU/Linux', 'Uos', 'Deepin', 'OSMC'], +-- +2.41.0 + diff --git a/SPECS/ansible-core.spec b/SPECS/ansible-core.spec index d39742d..36f57e0 100644 --- a/SPECS/ansible-core.spec +++ b/SPECS/ansible-core.spec @@ -33,7 +33,7 @@ Name: ansible-core Summary: SSH-based configuration management, deployment, and task execution system Version: 2.14.2 -Release: 5%{?dist} +Release: 5%{?dist}.inferit Group: Development/Libraries License: GPLv3+ @@ -49,6 +49,7 @@ Source6: https://files.pythonhosted.org/packages/source/r/resolvelib/resolvelib- Patch0: remove-bundled-deps-from-requirements.patch Patch1: ansible-test-Fix-vendoring-support-80074.patch +Patch2: 0001-Added-MSVSphere-support.patch URL: http://ansible.com @@ -112,6 +113,7 @@ developed for ansible. %setup -q -b2 -b3 -b4 -b5 -b6 -n ansible-core-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 # Fix all Python shebangs recursively in ansible-test %{py3_shebang_fix} test/lib/ansible_test @@ -197,6 +199,9 @@ strip --strip-unneeded %{vendor_path}/markupsafe/_speedups%{python3_ext_suffix} %changelog +* Mon Aug 14 2023 Arkady L. Shane - 2.14.2-5.inferit +- Added MSVSphere support + * Tue May 23 2023 Dimitri Savineau - 2.14.2-5 - ansible-test: Fix vendoring support (rhbz#2212444)