Skip to content
Snippets Groups Projects
Commit 5ce8d7cf authored by jurgenhaas's avatar jurgenhaas
Browse files

Initial role to install gitlab-runner

parent c44bac17
No related branches found
No related tags found
No related merge requests found
##
# Ansible file to install GitLab Runner
#
---
# file: roles/gitlab-runner/tasks/main.yml
- name: "GitLab Runner Role"
set_fact: role_gitlab_runner_started=true
tags: 'always'
- block:
- name: "Apt Key"
apt_key:
url: 'https://packages.gitlab.com/runner/gitlab-runner/gpgkey'
state: present
- name: "Apt Repository"
apt_repository:
repo: 'deb https://packages.gitlab.com/runner/gitlab-runner/ubuntu/ {{ ansible_distribution_release }} main'
state: 'present'
mode: '644'
- name: "Install SpiderOak Agent"
apt:
pkg: 'gitlab-runner'
state: 'present'
update_cache: yes
when: '"gitlab-runner" not in excluded_roles'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment