-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitlab-runner.yml
More file actions
27 lines (24 loc) · 847 Bytes
/
gitlab-runner.yml
File metadata and controls
27 lines (24 loc) · 847 Bytes
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
---
- name: Install gitlab-runner
hosts: gitlab-runner
become: true
tasks:
- name: get install repo file from gitlab
register: download
get_url:
url: https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh
dest: /tmp/gitlab-runner.deb.sh
- name: run script
when: download|success
register: runscript
shell: bash /tmp/gitlab-runner.deb.sh
args:
executable: /bin/bash
- name: install gitlab runner
when: runscript|success
apt: name=gitlab-ci-multi-runner state=latest
- name: Docker Machine
get_url:
url: https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-Linux-x86_64
dest: /usr/local/bin/docker-machine
mode: 0555