diff --git a/lib/ansible/modules/windows/win_iis_webapplication.ps1 b/lib/ansible/modules/windows/win_iis_webapplication.ps1 index 5262c67da3..fd781faaaa 100644 --- a/lib/ansible/modules/windows/win_iis_webapplication.ps1 +++ b/lib/ansible/modules/windows/win_iis_webapplication.ps1 @@ -71,7 +71,7 @@ try { # Remove application if ($state -eq 'absent' -and $application) { - $application = Remove-WebApplication -Site $site -Name $name $WhatIf:$check_mode + $application = Remove-WebApplication -Site $site -Name $name -WhatIf:$check_mode $result.changed = $true }