New in version 2.0.
parameter | required | default | choices | comments |
---|---|---|---|---|
attributes |
no | Application Pool attributes from string where attributes are separated by a pipe and attribute name/values by colon Ex. "foo:1|bar:2". The following attributes may only have the following names. managedPipelineMode may be either "Integrated" or "Classic". startMode may be either "OnDemand" or "AlwaysRunning". state may be one of "Starting", "Started", "Stopping", "Stopped", "Unknown". Use the state module parameter to modify, states shown are reflect the possible runtime values. | ||
name |
yes | Name of application pool | ||
state |
no |
|
State of the binding |
- name: return information about an existing application pool win_iis_webapppool: name: DefaultAppPool - name: Create a new application pool in 'Started' state win_iis_webapppool: name: AppPool state: started - name: Stop an application pool win_iis_webapppool: name: AppPool state: stopped - name: Restart an application pool win_iis_webapppool: name: AppPool state: restart - name: Changes application pool attributes without touching state win_iis_webapppool: name: AppPool attributes: 'managedRuntimeVersion:v4.0|autoStart:false' - name: Creates an application pool and sets attributes win_iis_webapppool: name: AnotherAppPool state: started attributes: 'managedRuntimeVersion:v4.0|autoStart:false' # Playbook example --- - name: App Pool with .NET 4.0 win_iis_webapppool: name: 'AppPool' state: started attributes: managedRuntimeVersion:v4.0 register: webapppool
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
info | Information on current state of the Application Pool | success | dictionary | None | ||||||||||||||||||||
contains: |
| |||||||||||||||||||||||
attributes | ['Application Pool attributes from that were processed by this module invocation.'] | success | dictionary | {'managedPipelineMode': 'Classic', 'enable32BitAppOnWin64': 'true', 'managedRuntimeVersion': 'v4.0'} | ||||||||||||||||||||
contains: |
|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.