aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/kolla-build-deps/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/kolla-build-deps/tasks/main.yml b/roles/kolla-build-deps/tasks/main.yml
index ebb5f00fa..a3fcd1473 100644
--- a/roles/kolla-build-deps/tasks/main.yml
+++ b/roles/kolla-build-deps/tasks/main.yml
@@ -62,3 +62,9 @@
path: "{{ '/run/docker.sock' if container_engine == 'docker' else '/run/podman/podman.sock' }}"
mode: "0666"
become: true
+
+- name: Run multiarch/qemu-user-static image to support cross-arch build
+ ansible.builtin.command:
+ cmd: "{{ container_engine }} run --rm --privileged multiarch/qemu-user-static --reset -p yes"
+ become: true
+ when: ansible_facts.architecture != (base_arch | default('x86_64'))