add option for redoploy

This commit is contained in:
2025-01-26 20:53:04 +01:00
parent 0b128f0f0a
commit 2adb0e5bd6
2 changed files with 7 additions and 1 deletions

View File

@@ -9,4 +9,5 @@ RUNNER_DIR: "/opt/{{ RUNNER_USER }}"
RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
RUNNER_DOWNLOAD_DIR: /tmp
RUNNER_LABELS:
- REPLACE_ME
- REPLACE_ME
RUNNER_REDEPLOY: false

View File

@@ -52,6 +52,11 @@
- name: flush handlers
meta: flush_handlers
- name: dele .runner file for redeploy
ansible.builtin.file:
state: absent
path: "{{ RUNNER_DIR }}/.runner"
- name: register runner
notify: restart runner
ansible.builtin.command: