Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct behaviour of win_iis_webapplication when no applicationpool is specified #61227

Merged
merged 2 commits into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- win_iis_webapplication - now uses the current application pool of the website instead of the DefaultAppPool if none was specified.
6 changes: 6 additions & 0 deletions lib/ansible/modules/windows/win_iis_webapplication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ if ($null -eq (Get-Module "WebAdministration" -ErrorAction SilentlyContinue)) {

# Application info
$application = Get-WebApplication -Site $site -Name $name
$website = Get-Website -Name $site

# Set ApplicationPool to current if not specified
if (!$application_pool) {
$application_pool = $website.applicationPool
}

try {
# Add application
Expand Down
1 change: 1 addition & 0 deletions lib/ansible/modules/windows/win_iis_webapplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
application_pool:
description:
- The application pool in which the new site executes.
- If not specified, the application pool of the current website will be used.
type: str
seealso:
- module: win_iis_virtualdirectory
Expand Down