This commit is contained in:
thienqb123456
2025-02-28 17:24:14 +07:00
parent 94386913d3
commit 38d9908946
6 changed files with 33 additions and 21 deletions
+3 -7
View File
@@ -1,11 +1,7 @@
#Debug
- name: Debug iis_site_name_1
- name: Debug iis_site_name
debug:
var: iis_site_name_1
- name: Debug iis_site_name_2
debug:
var: iis_site_name_2
var: iis_site_name
- name: Debug blue_path
debug:
@@ -24,7 +20,7 @@
- name: Get the physical path of the current IIS site
win_shell: |
Import-Module WebAdministration
$site = Get-Website -Name "{{ iis_site_name_1 }}"
$site = Get-Website -Name "{{ iis_site_name}}"
$site.PhysicalPath
register: active_path
- debug:
+2 -7
View File
@@ -1,11 +1,6 @@
- name: Update site 1 IIS web application
- name: Update site IIS web application
win_iis_website:
name: "{{ iis_site_name_1 }}"
physical_path: "{{ target_path }}"
- name: Update site 2 IIS web application
win_iis_website:
name: "{{ iis_site_name_2 }}"
name: "{{ iis_site_name }}"
physical_path: "{{ target_path }}"
# - name: Restart IIS site to apply changes