Skip to content
Extraits de code Groupes Projets
Valider 1e22590d rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

initial commit

parent
Branches
Étiquettes v1.0.0
Aucune requête de fusion associée trouvée
GitLab Runner Lab
=================
This role lets deploy a GitLab Runner.
Requirements
------------
None
Role Variables
--------------
Variables from vars directory :
* gitlab_runner_gpg_key_url: GitLab Runner GPG key to be added to apt_key
* gitlab_runner_packages_url: GitLab Runner packages URL to retrieve packages from
Dependencies
------------
This role has no dependencies per-se, however, it is foreseen to use other roles from Le Filament on the same server :
* init_server for initial server configuration (and in particular SSHD configuration) - https://sources.le-filament.com/lefilament/ansible-roles/init_server
* security to securize GitLab server (iptables, auditd, fail2ban) - https://sources.le-filament.com/lefilament/ansible-roles/server_security
Example Playbook
----------------
- hosts: gitlab
become: true
roles:
- { role: gitlab_runner, tags: gitlab_runner }
License
-------
AGPL-3
Author Information
------------------
Le Filament (https://le-filament.com)
---
galaxy_info:
author: Rémi
description: Role for deploying and configuring GitLab CE edition
company: Le Filament (https://le-filament.com)
license: AGPL-3.0-or-later
min_ansible_version: 2.1
platforms:
- name: Ubuntu
versions:
- focal
galaxy_tags:
- gitlab
---
- name: Install apt-transport-https package
package:
name: apt-transport-https
state: latest
async: 120
poll: 10
when: ansible_os_family == "Debian" and not ansible_check_mode
- name: Add GitLab Runner GPG key to APT
apt_key:
url: "{{ gitlab_runner_gpg_key_url }}"
when: ansible_os_family == "Debian"
- name: Add GitLab repo to APT repositories
apt_repository:
repo: deb {{ gitlab_runner_packages_url }}/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} main
update_cache: true
when: ansible_os_family == "Debian"
- name: Install GitLab package
package:
name: gitlab-runner
state: latest
async: 120
poll: 10
when: not ansible_check_mode
- name: Check installed GitLab package
package:
name: gitlab-runner
state: latest
when: ansible_check_mode
---
gitlab_runner_gpg_key_url: https://packages.gitlab.com/runner/gitlab-runner/gpgkey
gitlab_runner_packages_url: https://packages.gitlab.com/runner/gitlab-runner/
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter