diff --git a/main.yml b/main.yml index 7ed5410..4a74439 100644 --- a/main.yml +++ b/main.yml @@ -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' diff --git a/roles/multiarch-container-builds/tasks/main.yml b/roles/multiarch-container-builds/tasks/main.yml new file mode 100644 index 0000000..033df70 --- /dev/null +++ b/roles/multiarch-container-builds/tasks/main.yml @@ -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'