Commit 5ce8d7cf authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Initial role to install gitlab-runner

parent c44bac17
##
# 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'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment