Skip to content
Snippets Groups Projects
Commit 46604a85 authored by Erik-jan Riemers's avatar Erik-jan Riemers Committed by GitHub
Browse files

Merge pull request #4 from romaincabassot/docker_privileged

Docker privileged
parents ce4dab64 2aba9982
Branches
Tags v1.1.6.1
No related merge requests found
......@@ -14,3 +14,6 @@ gitlab_runner_executor: 'shell'
gitlab_runner_docker_image: ''
# Runner tags
gitlab_runner_tags: []
# Docker privileged mode
gitlab_runner_docker_privileged: false
---
# handlers file for gitlab-runner
- name: restart_gitlab_runner
service: name=gitlab-runner state=restarted
......@@ -2,6 +2,18 @@
- name: Set concurrent option
lineinfile:
dest: /etc/gitlab-runner/config.toml
regexp: ^concurrent =
line: concurrent = {{ gitlab_runner_concurrent }}
regexp: '^(\s*)concurrent ='
line: '\1concurrent = {{ gitlab_runner_concurrent }}'
state: present
backrefs: yes
notify: restart_gitlab_runner
- name: Set docker privileged option
lineinfile:
dest: /etc/gitlab-runner/config.toml
regexp: '^(\s*)privileged ='
line: '\1privileged = {{ gitlab_runner_docker_privileged | lower}}'
state: present
backrefs: yes
notify: restart_gitlab_runner
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment