From 5705532e7a1a0aea879496c01a66cc480d5c77a7 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 27 Jan 2021 08:32:27 +0100 Subject: [PATCH] Bugfix: nur Production Runner werden registriert --- group_vars/gitlabrunner.yml | 7 ------- host_vars/gitlab-runner-staging.grote.lan.yml | 10 ++++++++++ host_vars/gitlab-runner-test.grote.lan.yml | 10 ++++++++++ host_vars/gitlab-runner.grote.lan.yml | 10 ++++++++++ 4 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 host_vars/gitlab-runner-staging.grote.lan.yml create mode 100644 host_vars/gitlab-runner-test.grote.lan.yml create mode 100644 host_vars/gitlab-runner.grote.lan.yml diff --git a/group_vars/gitlabrunner.yml b/group_vars/gitlabrunner.yml index 11263514..6435c2bf 100644 --- a/group_vars/gitlabrunner.yml +++ b/group_vars/gitlabrunner.yml @@ -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 }}" diff --git a/host_vars/gitlab-runner-staging.grote.lan.yml b/host_vars/gitlab-runner-staging.grote.lan.yml new file mode 100644 index 00000000..576b21de --- /dev/null +++ b/host_vars/gitlab-runner-staging.grote.lan.yml @@ -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" diff --git a/host_vars/gitlab-runner-test.grote.lan.yml b/host_vars/gitlab-runner-test.grote.lan.yml new file mode 100644 index 00000000..576b21de --- /dev/null +++ b/host_vars/gitlab-runner-test.grote.lan.yml @@ -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" diff --git a/host_vars/gitlab-runner.grote.lan.yml b/host_vars/gitlab-runner.grote.lan.yml new file mode 100644 index 00000000..cb4a0321 --- /dev/null +++ b/host_vars/gitlab-runner.grote.lan.yml @@ -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"