- name: Validate variables assert: that: - artifact_name is defined and artifact_name | length > 0 - target_path is defined and target_path | length > 0 - temp_dir is defined and temp_dir | length > 0 fail_msg: "Thiếu hoặc rỗng biến cần thiết để deploy artifact!" # Giải nén artifact vào thư mục target - name: Deploy to target environment win_unzip: src: "{{ temp_dir }}\\{{ artifact_name }}" dest: "{{ target_path }}" overwrite: yes