39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From f7411c6c0795c0936ae59a4fab6c04d74da2d2bc Mon Sep 17 00:00:00 2001
|
|
From: wang--ge <wang__ge@126.com>
|
|
Date: Tue, 16 Nov 2021 09:19:20 +0800
|
|
Subject: [PATCH] add config item for openeuler
|
|
|
|
---
|
|
.../roles/ovirt-host-deploy-facts/tasks/host-os.yml | 9 ++++++++-
|
|
1 file changed, 8 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml b/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml
|
|
index 7e42653..ef92743 100644
|
|
--- a/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml
|
|
+++ b/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml
|
|
@@ -5,9 +5,15 @@
|
|
if ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
|
else 0 }}"
|
|
fc_ver: "{{ ansible_distribution_major_version|int
|
|
- if ansible_distribution == 'Fedora'
|
|
+ if (ansible_distribution == 'Fedora' or ansible_distribution == 'openEuler')
|
|
else 0 }}"
|
|
|
|
+- name: Check if system is OpenEuler
|
|
+ set_fact:
|
|
+ ansible_python_interpreter: "{{ 'usr/bin/python3' }}"
|
|
+ when:
|
|
+ ansible_distribution == 'openEuler'
|
|
+
|
|
- name: Fetch installed packages
|
|
package_facts:
|
|
manager: auto
|
|
@@ -26,3 +32,4 @@
|
|
- name: Detect if host is a prebuilt image
|
|
set_fact:
|
|
node_host: "{{ not node_presence.changed }}"
|
|
+
|
|
--
|
|
2.27.0
|
|
|