-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaybook_gitlab_runner.yml
89 lines (75 loc) · 1.97 KB
/
playbook_gitlab_runner.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
- hosts: gitlab
gather_facts: False
vars:
- root_dir: "{{ playbook_dir }}"
# - shared_dir: "{{ playbook_dir }}/../shared"
vars_files:
- ./gitlab_vars.yml
pre_tasks:
- debug: msg="Pre tasks section"
tags: always
- name: ANSIBLE PYTHON | install python 2
raw: test -e /usr/bin/python || (apt -qqy update && apt install -qy python-minimal)
become: yes
tags: always
- name: UNPRIVILEGED USERS | Get acl dependency (ansible unprivileged user operations magic)
apt: pkg="acl"
become: yes
tags: always
- name: gather facts
setup:
tags: always
- name: Include common pretasks
include_tasks: "{{shared_dir}}/common_pretasks.yml"
when: shared_dir is defined
tags: always
- name: Pre tasks round
include_tasks: "tasks_custom_tools_pre.yml"
roles:
- {
role: "sa-docker",
tags: ["create"]
}
- {
role: "sa-python",
tags: ["create"]
}
- {
role: "sa-python3",
tags: ["create"]
}
- {
role: "sa-go",
go_version: "1.11.5",
tags: ["create"]
}
- {
role: "sa-go-gimme",
go_version: "1.11.5",
tags: ["create"]
}
- {
role: "sa-ruby",
ruby_install_setsystem: false,
ruby_version: 2.4.2,
option_install_sampleapp: false,
option_install_nginx_passenger: false,
tags: ["create"]
}
- {
role: "sa-gitlab-runner",
gitlab_groups: ["docker"]
}
- {
role: "sa-node-nvm",
nvm_version: "0.31.2",
nodejs_version: "0.12",
deploy_user: "gitlab-runner",
option_nodejs_install_with_nvm: false,
tags: ["create"]
}
tasks:
- debug: msg="Tasks section"
- name: Pre tasks round
include_tasks: "tasks_custom_tools_post.yml"