diff --git a/roles/deploy/tasks/deploy.yml b/roles/deploy/tasks/deploy.yml index a797403..f76cfba 100644 --- a/roles/deploy/tasks/deploy.yml +++ b/roles/deploy/tasks/deploy.yml @@ -20,7 +20,7 @@ - name: Check if the download was successful debug: - msg: "Download successful: {{ download_status.downloaded }}" + msg: "Download successful: {{ download_status.msg }}" # Kiểm tra ở trên server đã tồn tại file vùa tải xuống không - name: Check if the artifact file exists @@ -31,9 +31,9 @@ failed_when: false # Debug file_status -- name: Output file status +- name: Debug file_status debug: - msg: "Artifact downloaded: {{ file_status.stat.exists }}" + var: file_status # Giải nén artifact vào thư mục target