Skip to content
Snippets Groups Projects
Verified Commit 238ba295 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Add --docker-image flag to tasks

parent c8311fad
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ your choice.
2. Get the ip address of the new VM, and configure your ssh environment
3. Create & activate a python virtual environment and install ansible
4. Update inventory.yml so that your VM is defined in the "gitlab-runner" group
5. Create the file `group_vars/ci-runners.yml` following the [example file](group_vars/ci-runners.yml.example) given
5. Create the file `group_vars/ci_runners.yml` following the [example file](group_vars/ci_runners.yml.example) given
* Consider the type of executor you want/need (docker, shell, etc.)
* More info on GitLab runner executors can be found [here](https://docs.gitlab.com/runner/executors/)
* This requires acquiring an access token to the GitLab instance for which you want to set up a runner
......
runner:
gitlab_url: 'https://gitlab.geant.org/'
git_project_name: 'goat/gap/geant-automation-platform'
access_token: 'glpat--JZC9kbyxoRUAyfLSGQz'
registration_token: 'GR1348941TaaZFFFhbsT1t91fgjTf'
executor: docker
ci-runners:
ci_runners:
hosts:
nat-runner-01:
ansible_host: nat-runner-01
- name: Install and set up a GitLab CI runner
hosts: ci-runners
hosts: ci_runners
become: true
roles:
- gitlab-runner
......@@ -42,6 +42,7 @@
- '--url={{ runner.gitlab_url }}'
- '--token={{ gitlab_authentication_response.runner.token }}'
- '--executor={{ runner.executor }}'
- '--docker-image=alpine:latest'
- '--non-interactive'
become: true
no_log: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment