Only update qemu-static container settings on x86_64

The image only support x86_64 so if you're running
this role against an arm64 node, this breaks.

Change-Id: Ied74ef9e4337346910c817ea5f3540af9ccfdf0b
This commit is contained in:
Mohammed Naser 2024-09-30 13:45:20 -04:00
parent cb0b00ed87
commit 655e88b7ba
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
- name: Update qemu-static container settings
command: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
when: ansible_architecture == 'x86_64'
- name: Create builder
command: "docker buildx create --name mybuilder --driver-opt network=host{% if buildset_registry is defined %} --config /etc/buildkit/buildkitd.toml {% endif %}"

View File

@ -2,6 +2,7 @@
command: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
environment:
DOCKER_CLI_EXPERIMENTAL: enabled
when: ansible_architecture == 'x86_64'
- name: Create builder
command: "docker buildx create --name mybuilder --driver-opt network=host{% if buildset_registry is defined %} --config /etc/buildkit/buildkitd.toml {% endif %}"