Skip to content

Commit

Permalink
Use gitlab-runner instead of gitlab-ci-multi-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Oct 30, 2017
1 parent 2ef1d13 commit 616a9da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/spec/default/gitlab_spec.rb
@@ -1,5 +1,5 @@
require 'spec_helper' require 'spec_helper'


describe package('gitlab-ci-multi-runner') do describe package('gitlab-runner') do
it { should be_installed } it { should be_installed }
end end
2 changes: 1 addition & 1 deletion files/pin-gitlab-runner.pref
@@ -1,4 +1,4 @@
Explanation: Prefer GitLab provided packages over the Debian native ones Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-ci-multi-runner Package: gitlab-runner
Pin: origin packages.gitlab.com Pin: origin packages.gitlab.com
Pin-Priority: 1001 Pin-Priority: 1001
16 changes: 10 additions & 6 deletions tasks/main.yml
@@ -1,22 +1,26 @@
--- ---
# tasks file for ansible-role-gitlab-ce # tasks file for ansible-role-gitlab-runner
- name: "Add gitlab-ce apt key" - name: "Add gitlab-runner apt key"
apt_key: apt_key:
url: "https://packages.gitlab.com/runner/gitlab-ci-multi-runner/gpgkey" url: "https://packages.gitlab.com/runner/gitlab-runner/gpgkey"
id: "14219A96E15E78F4" id: "14219A96E15E78F4"
- name: "Add apt repository of gitlab-ci-multi-runner" - name: "Remove apt repository of gitlab-ci-multi-runner"
apt_repository: apt_repository:
repo: "deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/{{ ansible_distribution | lower }} {{ ansible_lsb.codename }} main" repo: "deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/{{ ansible_distribution | lower }} {{ ansible_lsb.codename }} main"
state: absent
- name: "Add apt repository of gitlab-runner"
apt_repository:
repo: "deb https://packages.gitlab.com/runner/gitlab-runner/{{ ansible_distribution | lower }} {{ ansible_lsb.codename }} main"
- name: "Pin gitlab runner" - name: "Pin gitlab runner"
copy: copy:
src: pin-gitlab-runner.pref src: pin-gitlab-runner.pref
dest: /etc/apt/preferences.d/pin-gitlab-runner.pref dest: /etc/apt/preferences.d/pin-gitlab-runner.pref
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
- name: "Install gitlab-ci-multi-runner" - name: "Install gitlab-runner"
apt: apt:
name: gitlab-ci-multi-runner name: gitlab-runner


- name: "List configured runners" - name: "List configured runners"
command: gitlab-runner list command: gitlab-runner list
Expand Down

0 comments on commit 616a9da

Please sign in to comment.