feat: add environment variables

This commit is contained in:
Adrien Waksberg 2022-05-10 10:40:42 +02:00
parent 24bc640fc9
commit f2e3f37201
7 changed files with 48 additions and 0 deletions

View file

@ -17,6 +17,25 @@
GITLAB_RUNNER_DISABLE_SKEL: 'true'
tags: gitlab-runner
- name: create system directory
ansible.builtin.file:
path: /etc/systemd/system/gitlab-runner.service.d
owner: root
group: root
mode: 0755
state: directory
tags: gitlab-runner
- name: add environment variables
ansible.builtin.template:
src: environment.conf.j2
dest: /etc/systemd/system/gitlab-runner.service.d/ansible.conf
owner: root
group: root
mode: 0644
notify: restart gitlab-runner
tags: gitlab-runner
- name: register runners
gitlab_runner:
name: '{{ item.name }}'