Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
gitlab-runner
Commits
46604a85
Commit
46604a85
authored
7 years ago
by
Erik-jan Riemers
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4 from romaincabassot/docker_privileged
Docker privileged
parents
ce4dab64
2aba9982
Branches
Branches containing commit
Tags
v1.1.6.1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+3
-0
3 additions, 0 deletions
defaults/main.yml
handlers/main.yml
+2
-1
2 additions, 1 deletion
handlers/main.yml
tasks/global-setup.yml
+14
-2
14 additions, 2 deletions
tasks/global-setup.yml
with
19 additions
and
3 deletions
defaults/main.yml
+
3
−
0
View file @
46604a85
...
...
@@ -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
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
2
−
1
View file @
46604a85
---
# handlers file for gitlab-runner
-
name
:
restart_gitlab_runner
service
:
name=gitlab-runner state=restarted
This diff is collapsed.
Click to expand it.
tasks/global-setup.yml
+
14
−
2
View file @
46604a85
...
...
@@ -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
:
'
\1
concurrent
=
{{
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment