v3 #1

Open
thienvv wants to merge 69 commits from v3 into main
Showing only changes of commit 9d15ed743a - Show all commits
+5 -12
View File
@@ -41,23 +41,16 @@
} else {
Write-Output "NOT_FOUND"
}
register: active_path
register: site_path
- name: Debug output
debug:
msg: "Site path: {{ active_path.stdout }}"
- name: Set fact for site path
set_fact:
active_path: "{{ site_path.stdout_lines[0] }}"
- name: Fail if site does not exist
fail:
msg: "IIS site {{ iis_site_name }} not found!"
when: active_path.stdout == "NOT_FOUND"
# Chuẩn hóa giá trị của active_path
- name: Normalize active_path
set_fact:
active_path: "{{ active_path.stdout | trim }}"
- debug:
var: active_path
when: active_path == "NOT_FOUND"
# Chọn môi trường Blue hoặc Green để deploy
- name: Set target deployment environment