From e2bb64c3b9b21ca646dfdb01d0c23746c754d1c0 Mon Sep 17 00:00:00 2001 From: Devan Carpenter Date: Mon, 1 Feb 2021 01:56:51 +0100 Subject: [PATCH] docker: use arm64 instead of aarch64 If architecture is "aarch64" we should use the string "arm64" with the Docker repo. --- roles/gitlab-runner/tasks/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/gitlab-runner/tasks/docker.yml b/roles/gitlab-runner/tasks/docker.yml index 10eb36a..cde36a2 100644 --- a/roles/gitlab-runner/tasks/docker.yml +++ b/roles/gitlab-runner/tasks/docker.yml @@ -11,7 +11,7 @@ - name: Add Docker apt repo to souces.list apt_repository: codename: "{{ ansible_distribution_release }}" - repo: "deb [arch={{ ansible_architecture }}] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" + repo: "deb [arch={% if {{ ansible_architecture }} == aarch64 %}arm64 {% endif %}] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable" update_cache: yes - name: Install Docker CE