diff --git a/roles/deploy-be-portal/tasks/switch.yml b/roles/deploy-be-portal/tasks/switch.yml index f17ef58..573bdb7 100644 --- a/roles/deploy-be-portal/tasks/switch.yml +++ b/roles/deploy-be-portal/tasks/switch.yml @@ -7,8 +7,8 @@ win_shell: | Import-Module WebAdministration Add-WebConfigurationProperty -pspath "MACHINE/WEBROOT/APPHOST/{{ iis_site_name }}" ` - -filter "system.webServer/aspNetCore/environmentVariables" 1 - -name "." 1 + -filter "system.webServer/aspNetCore/environmentVariables" ` + -name "." ` -value @{name="ASPNETCORE_ENVIRONMENT"; value="{{ aspnetcore_environment }}"} # - name: Restart IIS site to apply changes