Skip to content

Commit

Permalink
Merge pull request #281 from alexanderfast/patch-1
Browse files Browse the repository at this point in the history
Add trim to register_runner_cmd
  • Loading branch information
guenhter authored Sep 13, 2023
2 parents c55eb7b + 767e271 commit dc3eef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/register-runner-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
block:
- name: Check if the configuration has changed since the last run
ansible.builtin.copy:
content: >
content: >-
{{ register_runner_cmd }}
--registration-token '{{ gitlab_runner.token|default(gitlab_runner_registration_token)|hash("sha1") }}'
{% if gitlab_runner.cache_s3_secret_key is defined %}
Expand All @@ -114,7 +114,7 @@
- import_tasks: list-configured-runners-windows.yml

- name: (Windows) Register runner to GitLab
win_shell: >
win_shell: >-
{{ register_runner_cmd }}
--registration-token '{{ gitlab_runner.token|default(gitlab_runner_registration_token) }}'
{% if gitlab_runner.cache_s3_secret_key is defined %}
Expand Down

0 comments on commit dc3eef1

Please sign in to comment.