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
No related branches found
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
--- ---
# handlers file for gitlab-runner - name: restart_gitlab_runner
service: name=gitlab-runner state=restarted
...@@ -2,6 +2,18 @@ ...@@ -2,6 +2,18 @@
- 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
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