diff options
author | Gianluca <Gianlu@users.noreply.github.com> | 2017-12-13 07:34:44 +0100 |
---|---|---|
committer | Jordan Borean <jborean93@gmail.com> | 2017-12-13 16:35:23 +1000 |
commit | 07a1217aa7478f51623e4757e9deef34595b4284 (patch) | |
tree | 2aaa72ffe39a1945f23c322a4cf07b02548f71fd | |
parent | 926dfb7c04a76b275d33281aa51a6cdd790057c0 (diff) | |
download | ansible-07a1217aa7478f51623e4757e9deef34595b4284.tar.gz |
Fixes #33771 - win_iis_webapppool bugfix (#33777)
* Fixes #33771
* Fixes #33771 - mod 1
* removed some unneeded whitespace
(cherry picked from commit 1d10a2867c507f2eb2dcc3fe01e41fa8e9edbb07)
-rw-r--r-- | lib/ansible/modules/windows/win_iis_webapppool.ps1 | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/ansible/modules/windows/win_iis_webapppool.ps1 b/lib/ansible/modules/windows/win_iis_webapppool.ps1 index 5f57929751..d95ba80bbd 100644 --- a/lib/ansible/modules/windows/win_iis_webapppool.ps1 +++ b/lib/ansible/modules/windows/win_iis_webapppool.ps1 @@ -256,18 +256,6 @@ if ($state -eq "absent") { } # Set the state of the pool - if (($state -eq "stopped") -and ($pool.State -eq "Started")) { - if (-not $check_mode) { - try { - Stop-WebAppPool -Name $name - } catch { - Fail-Json $result "Failed to stop Web App Pool $($name): $($_.Exception.Message)" - } - } - $result.changed = $true - } - - if ($pool.State -eq "Stopped") { if ($state -eq "started" -or $state -eq "restarted") { if (-not $check_mode) { |