diff --git a/roles/gitlab-runner/tasks/main.yml b/roles/gitlab-runner/tasks/main.yml index 481cc3c..ca60303 100644 --- a/roles/gitlab-runner/tasks/main.yml +++ b/roles/gitlab-runner/tasks/main.yml @@ -12,11 +12,19 @@ id: F6403F6544A38863DAA0B6E03F01618A51312F3F url: https://packages.gitlab.com/gpg.key -- name: Add GitLab apt repo to souces.list +- name: Add arm64 GitLab apt repo to souces.list apt_repository: codename: "{{ ansible_distribution_release }}" - repo: "deb [arch={% if ansible_architecture == 'aarch64' %}arm64 {% endif %}] https://packages.gitlab.com/runner/gitlab-runner/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main" + repo: "deb [arch=arm64] https://packages.gitlab.com/runner/gitlab-runner/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main" update_cache: yes + when: ansible_architecture == "aarch64" + +- name: Add amd64 GitLab apt repo to souces.list + apt_repository: + codename: "{{ ansible_distribution_release }}" + repo: "deb [arch=amd64] https://packages.gitlab.com/runner/gitlab-runner/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main" + update_cache: yes + when: ansible_architecture == "amd64" - name: Install GitLab Runner apt: