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
Branches
No related tags found
No related merge requests found
...@@ -14,3 +14,6 @@ gitlab_runner_executor: 'shell' ...@@ -14,3 +14,6 @@ gitlab_runner_executor: 'shell'
gitlab_runner_docker_image: '' gitlab_runner_docker_image: ''
# Runner tags # Runner tags
gitlab_runner_tags: [] gitlab_runner_tags: []
# Docker privileged mode
gitlab_runner_docker_privileged: false
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
- name: Set concurrent option - name: Set concurrent option
lineinfile: lineinfile:
dest: /etc/gitlab-runner/config.toml dest: /etc/gitlab-runner/config.toml
regexp: ^concurrent = regexp: '^(\s*)concurrent ='
line: concurrent = {{ gitlab_runner_concurrent }} line: '\1concurrent = {{ gitlab_runner_concurrent }}'
state: present 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