fix8
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
name: "{{ iis_site_name }}"
|
||||
physical_path: "{{ target_path }}"
|
||||
|
||||
- name: Set ASPNETCORE_ENVIRONMENT for IIS site
|
||||
win_shell: |
|
||||
Import-Module WebAdministration
|
||||
Add-WebConfigurationProperty -pspath "MACHINE/WEBROOT/APPHOST/{{ iis_site_name }}" `
|
||||
-filter "system.webServer/aspNetCore/environmentVariables" 1
|
||||
-name "." 1
|
||||
-value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"}
|
||||
|
||||
# - name: Restart IIS site to apply changes
|
||||
# win_iis_website:
|
||||
# name: "{{ iis_site_name }}"
|
||||
|
||||
Reference in New Issue
Block a user