瀏覽代碼

:fire: clean dashboard folder before upload the new one

Jeremy Zheng 1 年之前
父節點
當前提交
747b44d3fe
共有 1 個文件被更改,包括 5 次插入0 次删除
  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/"