correct behaviour of win_iis_webapplication when no applicationpool is specified (#61227)

* correct behaviour of win_iis_webapplication when no applicationpool is specified

* documentation for win_iis_webapplication apppool change
pull/62335/head
jn-bedag 5 years ago committed by ansibot
parent 99796dfa87
commit c7662d8b2f

@ -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.

@ -27,6 +27,12 @@ if ($null -eq (Get-Module "WebAdministration" -ErrorAction SilentlyContinue)) {
# Application info # Application info
$application = Get-WebApplication -Site $site -Name $name $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 { try {
# Add application # Add application

@ -40,6 +40,7 @@ options:
application_pool: application_pool:
description: description:
- The application pool in which the new site executes. - The application pool in which the new site executes.
- If not specified, the application pool of the current website will be used.
type: str type: str
seealso: seealso:
- module: win_iis_virtualdirectory - module: win_iis_virtualdirectory

Loading…
Cancel
Save