Thienvv - thêm start app pool

This commit is contained in:
thienqb123456
2025-05-01 16:07:16 +07:00
parent fb39e282f7
commit ef177a195d
10 changed files with 30 additions and 0 deletions
+6
View File
@@ -23,6 +23,12 @@
name: iis_utils
tasks_from: update_iis_physical_path.yml
- name: start_iis_app_pool
import_role:
name: iis_utils
tasks_from: start_iis_app_pool.yml
- name: set_site_aspnetcore_environment
import_role:
name: iis_utils
@@ -0,0 +1,11 @@
- name: Validate variables
assert:
that:
- app_pool_name is defined and app_pool_name | length > 0
fail_msg: "Thiếu hoặc rỗng biến cần thiết để start_iis_app_pool.yml!"
# Start app pool
- name: Start IIS App Pool
win_iis_webapppool:
name: "{{ app_pool_name }}"
state: started