Commit d0f55ea4 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] add ansible role to install idle CI

Just enough tasks and templates to end up with an idle gitlab CI runner
installed and running on the node.
parent c4248563
- name: Retrieve gitlab repo config
get_url:
url: https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh
dest: /root/script.rpm.sh
mode: 0744
- name: Add gitlab repo
command: bash /root/script.rpm.sh
- name: Add CI dependencies
package:
name: "{{ item }}"
state: present
with_items:
- gitlab-runner
- name: configure gitlab-runner
template:
src: config.gitlab.etc.j2
dest: /etc/gitlab-runner/config.toml
owner: root
group: root
mode: 0644
- name: restart the gitlab runner
service:
name: gitlab-runner
state: restarted
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment