12 lines
443 B
YAML
12 lines
443 B
YAML
- name: Validate variables
|
|
assert:
|
|
that:
|
|
- iis_site_name is defined and iis_site_name | length > 0
|
|
- target_path is defined and target_path | length > 0
|
|
fail_msg: "Thiếu hoặc rỗng biến cần thiết để set_target_path!"
|
|
|
|
# Cập nhật PhysicalPath mới cho site IIS (green/blue)
|
|
- name: Update site IIS web application
|
|
win_iis_website:
|
|
name: "{{ iis_site_name }}"
|
|
physical_path: "{{ target_path }}" |