Skip to content
Snippets Groups Projects
Commit a70a43d2 authored by Romain CABASSOT's avatar Romain CABASSOT
Browse files

Added docker executor 'privileged' configurable option.

parent ce4dab64
No related branches found
No related tags found
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
......@@ -2,6 +2,16 @@
- 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
- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment