From 37b34eae2d686c6a9cfe23f295c80444df9a8161 Mon Sep 17 00:00:00 2001 From: Troels Dalsgaard Hoffmeyer Date: Tue, 14 May 2024 11:29:45 +0200 Subject: [PATCH] Let "Replace runner" work with orgs When replacing an existing runner, it makes no sense to restrict it to not run on org runners. This commit removes that requirement closes: #207 --- tasks/install_runner.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/install_runner.yml b/tasks/install_runner.yml index e48bf4d..482c950 100644 --- a/tasks/install_runner.yml +++ b/tasks/install_runner.yml @@ -103,8 +103,7 @@ no_log: "{{ hide_sensitive_logs | bool }}" when: > runner_name in registered_runners.json.runners|map(attribute='name')|list and - reinstall_runner and - not runner_org + reinstall_runner - name: Install service # noqa no-changed-when ansible.builtin.command: "./svc.sh install {{ runner_user }}"