add option for redoploy
This commit is contained in:
@@ -10,3 +10,4 @@ RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
|
||||
RUNNER_DOWNLOAD_DIR: /tmp
|
||||
RUNNER_LABELS:
|
||||
- REPLACE_ME
|
||||
RUNNER_REDEPLOY: false
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user