From a8dd9ed10a3f272c4ba8c5f619c66eaf243e7112 Mon Sep 17 00:00:00 2001
From: wangdi <wangdi@kylinos.cn>
Date: Tue, 14 Mar 2023 17:11:34 +0800
Subject: [PATCH] get vdsm id from dmidecode system-uuid on aarch64

---
 .../project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml b/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml
index 87c7d87..c3612b9 100644
--- a/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml
+++ b/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-vdsm/tasks/vdsmid.yml
@@ -23,13 +23,13 @@
       name: dmidecode
       state: present
 
-  - name: Detect vdsm id for x86_64 or i686
+  - name: Detect vdsm id for x86_64 or i686 or aarch64
     shell: dmidecode -s system-uuid
     register: vdsm_id_res
     tags:
       - skip_ansible_lint # E305
 
-  - name: Set vdsm id for x86_64 or i686
+  - name: Set vdsm id for x86_64 or i686 or aarch64
     set_fact:
       vdsm_id: "{{ vdsm_id_res.stdout }}"
     when:
@@ -39,7 +39,7 @@
   when:
     - not vdsm_id_stat.stat.exists
     - not vdsm_id
-    - (ansible_facts.architecture == 'x86_64' or ansible_facts.architecture == 'i686')
+    - (ansible_facts.architecture == 'x86_64' or ansible_facts.architecture == 'i686' or ansible_facts.architecture == 'aarch64')
 
 - block:
   - name: Verify ppc system id path exists
-- 
2.39.1

