File tree 3 files changed +10
-14
lines changed
3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 34
34
35
35
# Register Gitlab Runner
36
36
- name : Unregister all previously used Gitlab Runners
37
- shell : " sudo gitlab-runner unregister --all-runners"
37
+ shell : " gitlab-runner unregister --all-runners"
38
38
39
39
- name : Add gitlab-runner user to docker group
40
- shell : " sudo usermod -aG docker gitlab-runner"
40
+ user :
41
+ name : gitlab-runner
42
+ groups : docker
43
+ append : yes
44
+ become : true
41
45
42
46
# see https://docs.gitlab.com/ce/ci/docker/using_docker_images.html#register-docker-runner
43
47
# and this for non-interactive mode:
Original file line number Diff line number Diff line change 1
1
---
2
2
# See https://about.gitlab.com/installation/#ubuntu for the installation docs
3
3
# all the necessary steps are executed in this script here
4
- - name : Update apt and autoremove
5
- apt :
6
- update_cache : yes
7
- cache_valid_time : 3600
8
- autoremove : yes
9
4
10
5
- name : Install curl, openssh-server, ca-certificates & postfix
11
6
apt :
19
14
- name : Add the GitLab package repository
20
15
shell : " curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash"
21
16
22
- - name : Update apt and autoremove
17
+ - name : Update apt
23
18
apt :
24
19
update_cache : yes
25
- cache_valid_time : 3600
26
- autoremove : yes
27
20
28
21
- name : Install Gitlab with Omnibus-Installer
29
22
apt :
Original file line number Diff line number Diff line change 9
9
gitlab_runner_count : 5
10
10
11
11
tasks :
12
-
13
12
- name : Update apt
14
13
apt :
15
14
update_cache : yes
26
25
27
26
- name : Install Gitlab on Linux node
28
27
import_tasks : install-gitlab.yml
29
- tags : install_gitlab
28
+ tags : gitlab
30
29
31
30
- name : Configure Gitlab Container Registry
32
31
import_tasks : configure-gitlab-registry.yml
33
- tags : configure_registry
32
+ tags : registry
34
33
35
34
- name : Install & Register Gitlab Runner for Docker
36
35
import_tasks : gitlab-runner.yml
37
- tags : gitlab_runner
36
+ tags : runner
38
37
39
38
- name : Congratulations!
40
39
debug :
You can’t perform that action at this time.
0 commit comments