-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
38 lines (33 loc) · 1.29 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Defaults variables for role gitlab-runner
# This role will install gitlab runner rpm from gitlab repo
# and then registers it to the gitlab infra
# User under which jobs will ran (default to "gitlab-runner")
gitlab_runner_user: gitlab-runner
gitlab_runner_working_dir: "/home/{{ gitlab_runner_user }}"
# Do we want to support docker/podman containers ?
# Important for runners_list below (if we want to support other than shells)
gitlab_runner_podman_host: False
# Some setting to register the runner[s]
# token to be found at the gitlab side for the project/namespace
# Let's start with a list of runners for podman/docker
# Example
# gitlab_runners_podman_list:
# - name: podman1
# url: https://gitlab.com
# registration_token: blablablabla
# docker_image: 'alpine:latest'
# tag_list: 'tag1,tag2,tag3' # If we don't specify tag_list, it will be registered with --run-untagged by default
# - name: podman2
# url: https://gitlab.com
# registration_token: blablablabla2
# docker_image: 'alpine:latest'
#
gitlab_runners_podman_list: []
# Now same thing but if we just want to use shell (no container)
# Example:
# gitlab_runners_shell_list:
# - name: shell1
# url: https://gitlab.com
# registration_token: blablabla
# shell: bash
gitlab_runners_shell_list: []