From 54b6528327fecaf131fe950dfcfe59c6e590f9b0 Mon Sep 17 00:00:00 2001 From: Corwin Brown Date: Fri, 30 Oct 2015 13:23:14 -0500 Subject: [PATCH 1/2] Adding Site_ID param --- windows/win_iis_website.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/win_iis_website.ps1 b/windows/win_iis_website.ps1 index 26a8df12730..e2c0d4ed325 100644 --- a/windows/win_iis_website.ps1 +++ b/windows/win_iis_website.ps1 @@ -37,6 +37,7 @@ If (($state -ne $FALSE) -and ($state -ne 'started') -and ($state -ne 'stopped') # Path parameter $physical_path = Get-Attr $params "physical_path" $FALSE; +$site_id = Get-Attr $params "site_id" $FALSE; # Application Pool Parameter $application_pool = Get-Attr $params "application_pool" $FALSE; @@ -91,6 +92,10 @@ Try { $site_parameters.ApplicationPool = $application_pool } + If ($site_id) { + $site_parameters.ID = $site_id + } + If ($bind_port) { $site_parameters.Port = $bind_port } From 41a719ce71a02e171c289070c9eb3bae80f36831 Mon Sep 17 00:00:00 2001 From: Corwin Brown Date: Fri, 11 Mar 2016 07:32:35 -0600 Subject: [PATCH 2/2] Updated Documentation to include site_id param --- windows/win_iis_website.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/windows/win_iis_website.py b/windows/win_iis_website.py index 8921afe5970..71553401feb 100644 --- a/windows/win_iis_website.py +++ b/windows/win_iis_website.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' --- module: win_iis_website -version_added: "2.0" +version_added: "2.1" short_description: Configures a IIS Web site. description: - Creates, Removes and configures a IIS Web site @@ -32,6 +32,11 @@ options: required: true default: null aliases: [] + site_id: + description: + - Explicitly set the IIS ID for a site. + required: false + default: null state: description: - State of the web site