add option for redoploy
This commit is contained in:
@@ -9,4 +9,5 @@ RUNNER_DIR: "/opt/{{ RUNNER_USER }}"
|
|||||||
RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
|
RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service"
|
||||||
RUNNER_DOWNLOAD_DIR: /tmp
|
RUNNER_DOWNLOAD_DIR: /tmp
|
||||||
RUNNER_LABELS:
|
RUNNER_LABELS:
|
||||||
- REPLACE_ME
|
- REPLACE_ME
|
||||||
|
RUNNER_REDEPLOY: false
|
||||||
@@ -52,6 +52,11 @@
|
|||||||
- name: flush handlers
|
- name: flush handlers
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
|
- name: dele .runner file for redeploy
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: absent
|
||||||
|
path: "{{ RUNNER_DIR }}/.runner"
|
||||||
|
|
||||||
- name: register runner
|
- name: register runner
|
||||||
notify: restart runner
|
notify: restart runner
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
Reference in New Issue
Block a user