Bugfix: nur Production Runner werden registriert

This commit is contained in:
Michael Grote 2021-01-27 08:32:27 +01:00
parent 4315e1fa4f
commit 5705532e7a
4 changed files with 30 additions and 7 deletions

View file

@ -9,10 +9,3 @@
pip_package: python3-pip
pip_install_packages:
- name: python-gitlab
### mgrote.gitlab-runner
gitlab_runner:
- api_url: https://git.mgrote.net
registration_token: "{{ lookup('keepass', 'gitlab_runner_registration_token', 'password') }}"
api_token: "{{ lookup('keepass', 'gitlab_runner_api_token', 'password') }}" #Token: ansible-gitlab-runner
api_username: root
description: "{{ ansible_hostname }}"

View file

@ -0,0 +1,10 @@
---
### mgrote.gitlab-runner
gitlab_runner:
- api_url: https://git.mgrote.net
registration_token: "{{ lookup('keepass', 'gitlab_runner_registration_token', 'password') }}"
api_token: "{{ lookup('keepass', 'gitlab_runner_api_token', 'password') }}" #Token: ansible-gitlab-runner
api_username: root
description: "{{ ansible_hostname }}"
active: "false"
state: "absent"

View file

@ -0,0 +1,10 @@
---
### mgrote.gitlab-runner
gitlab_runner:
- api_url: https://git.mgrote.net
registration_token: "{{ lookup('keepass', 'gitlab_runner_registration_token', 'password') }}"
api_token: "{{ lookup('keepass', 'gitlab_runner_api_token', 'password') }}" #Token: ansible-gitlab-runner
api_username: root
description: "{{ ansible_hostname }}"
active: "false"
state: "absent"

View file

@ -0,0 +1,10 @@
---
### mgrote.gitlab-runner
gitlab_runner:
- api_url: https://git.mgrote.net
registration_token: "{{ lookup('keepass', 'gitlab_runner_registration_token', 'password') }}"
api_token: "{{ lookup('keepass', 'gitlab_runner_api_token', 'password') }}" #Token: ansible-gitlab-runner
api_username: root
description: "{{ ansible_hostname }}"
active: "true"
state: "present"