Skip to content

Commit ee18522

Browse files
Fix installation idempotence
1 parent f365b1e commit ee18522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/install_runner.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
become: yes
110110
become_user: "{{ runner_user }}"
111111
no_log: "{{ hide_sensitive_logs | bool }}"
112-
when: runner_name in registered_runners.json.runners|map(attribute='name')|list and not runner_org
112+
when: runner_name in registered_runners.json.runners|map(attribute='name')|list and reinstall_runner and not runner_org
113113
tags:
114114
- install
115115

@@ -121,7 +121,7 @@
121121
become: yes
122122
become_user: "{{ runner_user }}"
123123
no_log: "{{ hide_sensitive_logs | bool }}"
124-
when: runner_name in registered_runners.json.runners|map(attribute='name')|list and runner_org
124+
when: runner_name in registered_runners.json.runners|map(attribute='name')|list and reinstall_runner and runner_org
125125
tags:
126126
- install
127127

0 commit comments

Comments
 (0)