Files
nsg_ansible/roles/iis_utils/tasks/update_iis_physical_path.yml
2025-03-04 17:13:09 +07:00

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 }}"