Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ansible-test integration tests for arm64 #906

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
AndrewJDawes marked this conversation as resolved.
Show resolved Hide resolved

- block:
Expand Down
Loading