Skip to content

Commit 248a92f

Browse files
niziakguenhter
authored andcommitted
tasks/unregister-runner: fix error when runner name contains space
1 parent 553ce81 commit 248a92f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/unregister-runner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
- gitlab_install_target_platform == 'container'
1919

2020
- name: (Windows) Unregister runner
21-
ansible.windows.win_command: "{{ gitlab_runner_executable }} unregister --name {{ actual_gitlab_runner_name }}"
21+
ansible.windows.win_command: "{{ gitlab_runner_executable }} unregister --name '{{ actual_gitlab_runner_name }}'"
2222
args:
2323
chdir: "{{ gitlab_runner_config_file_location }}"
2424
when:
2525
- gitlab_install_target_platform == 'windows'
2626

2727
- name: Unregister runner
28-
ansible.builtin.command: "{{ gitlab_runner_executable }} unregister --name {{ actual_gitlab_runner_name }}"
28+
ansible.builtin.command: "{{ gitlab_runner_executable }} unregister --name '{{ actual_gitlab_runner_name }}'"
2929
when:
3030
- gitlab_install_target_platform == 'unix'
3131
become: "{{ gitlab_runner_system_mode }}"

0 commit comments

Comments
 (0)