Skip to content
Snippets Groups Projects
Commit 5ef83300 authored by Harold Barker's avatar Harold Barker
Browse files

Add gitlab_runner_docker_image option

parent 9bbda69f
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ Defaults to the hostname.
The executor used by the runner.
Defaults to `shell`.
`gitlab_runner_docker_image`
The default Docker image to use. Required when executor is `docker`.
`gitlab_runner_tags`
The tags assigned to the runner,
Defaults to an empty list.
......
......@@ -10,5 +10,7 @@ gitlab_runner_registration_token: ''
gitlab_runner_description: '{{ ansible_hostname }}'
# Runner executor
gitlab_runner_executor: 'shell'
# Default Docker image
gitlab_runner_docker_image: ''
# Runner tags
gitlab_runner_tags: []
......@@ -12,4 +12,5 @@
--description '{{ gitlab_runner_description }}'
--tag-list '{{ gitlab_runner_tags | join(",") }}'
--executor '{{ gitlab_runner_executor }}'
--docker-image '{{ gitlab_runner_docker_image }}'
when: configured_runners.stderr.find('\n{{ gitlab_runner_description }}') == -1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment