update
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user