split tasks for installing Gitlab repos by arch

previous if/else was invalid, so no arch was set, causing playbook to
fail.
master
Devan Carpenter 2 years ago
parent c055dc2ea6
commit 38541ca3ee
Signed by: dvn
GPG Key ID: E1707CFFD7B85A02

@ -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:

Loading…
Cancel
Save