Migration guide
Some of the modules in this collection have come from the community.windows collection. This document will go through some of the changes made to help ease the transition from the older modules to the ones in this collection.
Migrated Modules
The following modules have been migrated in some shape or form into this collection
community.windows.win_iis_website
->microsoft.iis.website
- detailscommunity.windows.win_iis_webbinding
->microsoft.iis.website
- detailscommunity.windows.win_iis_virtualdirectory
->microsoft.iis.virtual_directory
- detailscommunity.windows.win_iis_webapppool
->microsoft.iis.web_app_pool
- detailscommunity.windows.win_iis_webapplication
->microsoft.iis.web_application
- details
While these modules are mostly drop in place compatible there are some breaking changes that need to be considered. See each module entry for more information.
Module win_iis_website
Migrated to microsoft.iis.website.
The following options have been removed:
parameters
- Not currently implemented in the new modulehostname
,ip
,port
- Moved to thebindings
parameter, see details for more details
The return values have also been removed in favour of the microsoft.iis.website_info module.
This example shows how a website was defined in the old module and the equivalent definition in the new module:
- name: Build website in win_iis_webbinding
community.windows.win_iis_website:
name: Acme
state: started
ip: 127.0.0.1
port: 80
application_pool: acme
physical_path: C:\sites\acme
- name: Build website in microsoft.iis.website
microsoft.iis.website:
name: Acme
state: started
bindings:
set:
- ip: 127.0.0.1
port: 80
application_pool: acme
physical_path: C:\sites\acme
Module win_iis_webbinding
Migrated to microsoft.iis.website.
The entire module has been removed and the functionality has been merged into the microsoft.iis.website module. The bindings are now specified by the bindings
parameter in the website module and can be used to add, remove, or set multiple bindings in one operation on the website. While most of the bindings
entries follow the same format as the old module, there are some changes to a binding entry:
host_header
- Has been renamed tohostname
ssl_flags
- Has been split intouse_sni
anduse_ccs
state
- Controlled by specifying the binding into the relevantadd
,remote
, orset
key
Module win_iis_virtualdirectory
Migrated to microsoft.iis.virtual_directory.
The new microsoft.iis.virtual_directory
module is largely unchanged from the old module, with the exception of the return values being removed. The new microsoft.iis.virtual_directory_info module can be used to retrieve information about virtual directories instead.
Module win_iis_webapppool
Migrated to microsoft.iis.web_app_pool.
The new microsoft.iis.web_app_pool
module is largely unchanged from the old module, with the exception of the return values being removed. The new microsoft.iis.web_app_pool_info module can be used to retrieve information about web app pools instead.
Module win_iis_webapplication
Migrated to microsoft.iis.web_application.
The new microsoft.iis.web_application
module is largely unchanged from the old module, with the exception of the return values being removed. The new microsoft.iis.web_application_info module can be used to retrieve information about web applications instead.