Move setup to build multiarch containers into dedicated role

This change moves the QEMU configuration for multiarch builds into a
dedicated role. Furthermore the execution will always be treated as
unchanged, unless an error occured!
This commit is contained in:
2025-11-28 12:58:45 +01:00
parent 40e146cdfa
commit 730cebfc60
2 changed files with 7 additions and 5 deletions

View File

@@ -24,13 +24,10 @@
tags: [packages]
- role: roles/helm-diff
tags: [packages]
- role: roles/multiarch-container-builds
tags: [packages]
tasks:
- name: Dump hostvars
tags: [never, dump]
debug:
var: hostvars[inventory_hostname]
- name: Configure QEMU for multiarch podman builds
tags: [packages]
become: yes
shell: podman run --rm --privileged docker.io/multiarch/qemu-user-static --reset -p yes
when: ansible_os_family == 'Debian'

View File

@@ -0,0 +1,5 @@
- name: Ensure QEMU configuration for multiarch podman builds
become: yes
shell: podman run --rm --privileged docker.io/multiarch/qemu-user-static --reset -p yes
changed_when: False
when: ansible_os_family == 'Debian'