Pārlūkot izejas kodu

:fire: clean dashboard folder before upload the new one

Jeremy Zheng 1 gadu atpakaļ
vecāks
revīzija
747b44d3fe
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      deploy/roles/mint-v2/tasks/dashboard.yml

+ 5 - 0
deploy/roles/mint-v2/tasks/dashboard.yml

@@ -1,3 +1,8 @@
+- name: remove current dashboard folder
+  ansible.builtin.file:
+    path: "{{ app_deploy_root }}/dashboard/"
+    state: absent
+
 - name: upload dashboard
   ansible.builtin.copy:
     src: "{{ playbook_dir }}/../dashboard/build/"