File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ gitlab_runner_windows_service_password: ''
48
48
# gitlab_runner_container_install
49
49
gitlab_runner_container_install : false
50
50
51
+ # you can define a network which the container connects to
52
+ # this option uses network_mode, thus 'default' will use the first network found in docker network list
53
+ gitlab_runner_container_network : default
54
+
51
55
# default state to restart
52
56
gitlab_runner_restart_state : restarted
53
57
Original file line number Diff line number Diff line change 72
72
- type : bind
73
73
source : /var/run/docker.sock
74
74
target : /var/run/docker.sock
75
+ network_mode : " {{ gitlab_runner_container_network }}"
Original file line number Diff line number Diff line change 119
119
target : /etc/gitlab-runner
120
120
cleanup : yes
121
121
auto_remove : yes
122
+ network_mode : " {{ gitlab_runner_container_network }}"
122
123
when : (verified_runners.container.Output.find("Verifying runner... is removed") != -1) or
123
124
((configured_runners.container.Output.find('\n' + gitlab_runner.name|default(ansible_hostname+'-'+gitlab_runner_index|string)) == -1) and
124
125
(gitlab_runner.state|default('present') == 'present'))
You can’t perform that action at this time.
0 commit comments