blob: 86726320b62e47337653a7628a95969a2a8c6c9b (
plain)
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
|
---
- name: Create /opt/gitlab-shell directory
file:
path: /opt/gitlab-shell
state: directory
mode: '0755'
owner: git
group: git
- name: Clone gitlab-shell
git:
repo: https://gitlab.com/gitlab-org/gitlab-shell.git
dest: /src/gitlab-shell
version: HEAD
become_user: git
- name: Build gitlab-shell
make:
target: build
jobs: "{{ ansible_processor_nproc }}"
chdir: /src/gitlab-shell
environment:
PATH: '/usr/local/go/bin:{{ ansible_env.PATH }}'
become_user: git
- name: Install gitlab-shell to /opt/gitlab-shell
make:
target: install
params:
PREFIX: /opt/gitlab-shell
jobs: "{{ ansible_processor_nproc }}"
chdir: /src/gitlab-shell
environment:
PATH: '/usr/local/go/bin:{{ ansible_env.PATH }}'
- name: Create gitlab-shell secret
file:
path: /var/opt/gitaly/shell.secret
state: touch
mode: '0400'
owner: git
group: git
|