Thienvv -
This commit is contained in:
@@ -15,17 +15,16 @@
|
|||||||
debug:
|
debug:
|
||||||
var: active_path
|
var: active_path
|
||||||
|
|
||||||
|
- name: Handle error if active_path is null
|
||||||
|
fail:
|
||||||
|
msg: "The IIS site active path could not be determined."
|
||||||
|
when: active_path.stdout is null
|
||||||
|
|
||||||
|
|
||||||
# Chuẩn hóa giá trị của active_path
|
# Chuẩn hóa giá trị của active_path
|
||||||
- name: Normalize active_path
|
- name: Normalize active_path
|
||||||
set_fact:
|
set_fact:
|
||||||
active_path: "{{ active_path.stdout | default('') | trim }}"
|
active_path: "{{ active_path.stdout | trim }}"
|
||||||
|
|
||||||
|
|
||||||
# Debug Debug active_path
|
|
||||||
- name: Debug active_path
|
|
||||||
debug:
|
|
||||||
var: active_path
|
|
||||||
|
|
||||||
- name: Debug blue_path
|
- name: Debug blue_path
|
||||||
debug:
|
debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user