luisico.gitlab-ci-runner
GitLab CI Runner
Overview
This document explains how to install GitLab CI Runner and register it.
Currently, only the Docker executor is supported.
You can register only one runner per host each time you run this role. If a runner with the same name or token already exists, it will be skipped. If you remove a runner from the GitLab CI server, it will also be removed from the host.
This role adds the official GitLab CI Runner repository but keeps it disabled by default.
Requirements
Check the meta/main.yml
file for requirements.
Role Variables
Look at the defaults/main.yml
file for the variables you can use.
Dependencies
Make sure Docker is installed. You can use a Docker role from Ansible Galaxy to do this.
Example Playbook
Here’s how to use the role in your playbook:
- hosts: servers
roles:
- docker
- gitlab-ci-runner
TODO
- Find a better method to identify already registered runners.
- Allow runners to pick up jobs that don't have tags.
- Activate
repo_gpgcheck
. The RPM from the repository is not signed, but the repository itself is signed. However, there are some validation issues with Yum.
License
This project is licensed under the MIT License.
Author Information
Luis Gracia, while at EMBL-EBI and Rockefeller University:
ansible-galaxy install luisico.gitlab-ci-runner