Merge pull request #1183 from blakfeld/add_id_to_win_iis_website
Adding Site_ID param
This commit is contained in:
commit
a812cfbd2f
2 changed files with 11 additions and 1 deletions
|
@ -37,6 +37,7 @@ If (($state -ne $FALSE) -and ($state -ne 'started') -and ($state -ne 'stopped')
|
||||||
|
|
||||||
# Path parameter
|
# Path parameter
|
||||||
$physical_path = Get-Attr $params "physical_path" $FALSE;
|
$physical_path = Get-Attr $params "physical_path" $FALSE;
|
||||||
|
$site_id = Get-Attr $params "site_id" $FALSE;
|
||||||
|
|
||||||
# Application Pool Parameter
|
# Application Pool Parameter
|
||||||
$application_pool = Get-Attr $params "application_pool" $FALSE;
|
$application_pool = Get-Attr $params "application_pool" $FALSE;
|
||||||
|
@ -91,6 +92,10 @@ Try {
|
||||||
$site_parameters.ApplicationPool = $application_pool
|
$site_parameters.ApplicationPool = $application_pool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
If ($site_id) {
|
||||||
|
$site_parameters.ID = $site_id
|
||||||
|
}
|
||||||
|
|
||||||
If ($bind_port) {
|
If ($bind_port) {
|
||||||
$site_parameters.Port = $bind_port
|
$site_parameters.Port = $bind_port
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: win_iis_website
|
module: win_iis_website
|
||||||
version_added: "2.0"
|
version_added: "2.1"
|
||||||
short_description: Configures a IIS Web site.
|
short_description: Configures a IIS Web site.
|
||||||
description:
|
description:
|
||||||
- Creates, Removes and configures a IIS Web site
|
- Creates, Removes and configures a IIS Web site
|
||||||
|
@ -32,6 +32,11 @@ options:
|
||||||
required: true
|
required: true
|
||||||
default: null
|
default: null
|
||||||
aliases: []
|
aliases: []
|
||||||
|
site_id:
|
||||||
|
description:
|
||||||
|
- Explicitly set the IIS ID for a site.
|
||||||
|
required: false
|
||||||
|
default: null
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- State of the web site
|
- State of the web site
|
||||||
|
|
Loading…
Reference in a new issue