Skip to content

Commit

Permalink
Support ansible-test integration for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJDawes committed Jun 29, 2024
1 parent 2ce838a commit 2c5c37e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/integration/targets/setup_docker/tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@
- name: Add gpg key
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key

- name: Debug architecture
debug:
msg: '{{ ansible_architecture }}'

- name: Set default arch amd64 for Docker repo
set_fact:
docker_arch: amd64

- name: Set arch arm64 for Docker repo when on aarch64
set_fact:
docker_arch: arm64
when: ansible_architecture == 'aarch64'

- name: Add Docker repo
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
repo: deb [arch={{ docker_arch }}] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
state: present

- block:
Expand Down

0 comments on commit 2c5c37e

Please sign in to comment.