diff --git a/defaults/main.yml b/defaults/main.yml index f90383c..de67df7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,4 +9,5 @@ RUNNER_DIR: "/opt/{{ RUNNER_USER }}" RUNNER_SERVICE_NAME: "{{ RUNNER_NAME }}.service" RUNNER_DOWNLOAD_DIR: /tmp RUNNER_LABELS: - - REPLACE_ME \ No newline at end of file + - REPLACE_ME +RUNNER_REDEPLOY: false \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 5e0cad4..82fb467 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: