microsoft.iis.website_info module – Get information on IIS websites
Note
This module is part of the microsoft.iis collection (version 1.0.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install microsoft.iis
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: microsoft.iis.website_info
.
Synopsis
Returns information about IIS websites.
Requirements
The below requirements are needed on the host that executes this module.
IISAdministration PowerShell module
Parameters
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped. |
|
Support: none |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
|
Platform: windows |
Target OS/families that can be operated against |
See Also
See also
- microsoft.iis.website
Configures an IIS website.
Examples
- name: Return information about an existing website
microsoft.iis.website_info:
name: 'Default Web Site'
register: stored_info
- name: Returns information about all websites that exist on the system
microsoft.iis.website_info:
register: stored_info_all
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether any website were found. Returned: always Sample: |
|
Contains list of dictionaries. Every dictionary in the list contains name and information of a website. Returned: success Sample: |
|
Specifies the application pool in which the website runs. Returned: success Sample: |
|
List of dictionaries that hold the information of all the website bindings. Returned: success |
|
The SSL certificate hash used by the server. Returned: success Sample: |
|
The SSL certificate local store name. Returned: success Sample: |
|
The website binding hostname (DNS). Returned: success Sample: |
|
The website binding listen IP. Returned: success Sample: |
|
The website binding listen port. Returned: success Sample: |
|
The website used protocol. Returned: success Sample: |
|
Use Centralized Certificate Store (CCS) for SSL certificates. Returned: success Sample: |
|
Require Server Name Indication (SNI) for SSL certificates. Returned: success Sample: |
|
Name of the website. Returned: success Sample: |
|
Specifies the physical folder path of the website. Returned: success Sample: |
|
Specifies the website ID. Returned: success Sample: |
|
Specifies the website state Started/Stopped. Returned: success Sample: |