Skip to content
Snippets Groups Projects
Commit 8b8eb594 authored by Harold Barker's avatar Harold Barker
Browse files

Install GitLab Runner for debian

parent 20673e85
Branches
No related tags found
No related merge requests found
---
- name: Add GitLab apt key
apt_key:
url: https://packages.gitlab.com/gpg.key
state: present
- name: Install GitLab Runner dependencies
apt:
name: '{{ item }}'
state: present
with_items:
- debian-archive-keyring
- apt-transport-https
- name: Add GitLab Runner apt repo
apt_repository:
repo: 'deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/{{ ansible_distribution | lower }}/ {{ ansible_distribution_major_version }} main'
state: present
- name: Install GitLab Runner
apt:
name: gitlab-ci-multi-runner
state: latest
update_cache: yes
--- ---
- name: Install GitLab Runner (Debian)
include: install-debian.yml
when: ansible_os_family == 'Debian'
- name: Install GitLab Runner (RedHat) - name: Install GitLab Runner (RedHat)
include: install-redhat.yml include: install-redhat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment