| 1 |
--- |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
DOCUMENTATION: |
| 6 |
module: web_app_pool_info |
| 7 |
short_description: Get information on IIS Web Application Pools |
| 8 |
description: |
| 9 |
- Returns information about IIS Web Application Pools. |
| 10 |
requirements: |
| 11 |
- IISAdministration PowerShell module |
| 12 |
options: |
| 13 |
name: |
| 14 |
description: |
| 15 |
- Name of the application pool. |
| 16 |
- When not specified, information of all existing pools will be fetched. |
| 17 |
type: str |
| 18 |
required: false |
| 19 |
extends_documentation_fragment: |
| 20 |
- ansible.builtin.action_common_attributes |
| 21 |
attributes: |
| 22 |
check_mode: |
| 23 |
support: full |
| 24 |
diff_mode: |
| 25 |
support: none |
| 26 |
platform: |
| 27 |
platforms: |
| 28 |
- windows |
| 29 |
seealso: |
| 30 |
- module: microsoft.iis.web_app_pool |
| 31 |
author: |
| 32 |
- Ron Gershburg (@rgershbu) |
| 33 |
|
| 34 |
EXAMPLES: | |
| 35 |
- name: Return information about an existing application pool |
| 36 |
microsoft.iis.web_app_pool_info: |
| 37 |
name: DefaultAppPool |
| 38 |
register: stored_info |
| 39 |
|
| 40 |
- name: Returns information about all application pools that exist on the system |
| 41 |
microsoft.iis.web_app_pool_info: |
| 42 |
register: stored_info_all |
| 43 |
|
| 44 |
RETURN: |
| 45 |
exists: |
| 46 |
description: |
| 47 |
- Whether any application pools were found. |
| 48 |
returned: success |
| 49 |
type: bool |
| 50 |
sample: true |
| 51 |
app_pools: |
| 52 |
description: |
| 53 |
- Contains list of dictionaries. |
| 54 |
- Every dictionary in the list contains name and information of an application pool. |
| 55 |
returned: '' |
| 56 |
type: list |
| 57 |
sample: '[ |
| 58 |
{ |
| 59 |
"attributes": { |
| 60 |
"CLRConfigFile": "", |
| 61 |
"applicationPoolSid": "S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415", |
| 62 |
"autoStart": true, |
| 63 |
"cpu": { |
| 64 |
"action": "NoAction", |
| 65 |
"limit": 0, |
| 66 |
"numaNodeAffinityMode": "Soft", |
| 67 |
"numaNodeAssignment": "MostAvailableMemory", |
| 68 |
"processorGroup": 0, |
| 69 |
"resetInterval": "00:05:00", |
| 70 |
"smpAffinitized": false, |
| 71 |
"smpProcessorAffinityMask": 4294967295, |
| 72 |
"smpProcessorAffinityMask2": 4294967295 |
| 73 |
}, |
| 74 |
"enable32BitAppOnWin64": false, |
| 75 |
"enableConfigurationOverride": true, |
| 76 |
"failure": { |
| 77 |
"autoShutdownExe": "", |
| 78 |
"autoShutdownParams": "", |
| 79 |
"loadBalancerCapabilities": "HttpLevel", |
| 80 |
"orphanActionExe": "", |
| 81 |
"orphanActionParams": "", |
| 82 |
"orphanWorkerProcess": false, |
| 83 |
"rapidFailProtection": true, |
| 84 |
"rapidFailProtectionInterval": "00:05:00", |
| 85 |
"rapidFailProtectionMaxCrashes": 5 |
| 86 |
}, |
| 87 |
"managedPipelineMode": "Integrated", |
| 88 |
"managedRuntimeLoader": "webengine4.dll", |
| 89 |
"managedRuntimeVersion": "v4.0", |
| 90 |
"name": "DefaultAppPool", |
| 91 |
"passAnonymousToken": true, |
| 92 |
"processModel": { |
| 93 |
"identityType": "ApplicationPoolIdentity", |
| 94 |
"idleTimeout": "00:20:00", |
| 95 |
"idleTimeoutAction": "Terminate", |
| 96 |
"loadUserProfile": false, |
| 97 |
"logEventOnProcessModel": "IdleTimeout", |
| 98 |
"logonType": "LogonBatch", |
| 99 |
"manualGroupMembership": false, |
| 100 |
"maxProcesses": 1, |
| 101 |
"pingInterval": "00:00:30", |
| 102 |
"pingResponseTime": "00:01:30", |
| 103 |
"pingingEnabled": true, |
| 104 |
"requestQueueDelegatorIdentity": "", |
| 105 |
"setProfileEnvironment": true, |
| 106 |
"shutdownTimeLimit": "00:01:30", |
| 107 |
"startupTimeLimit": "00:01:30", |
| 108 |
"userName": "" |
| 109 |
}, |
| 110 |
"queueLength": 1000, |
| 111 |
"recycling": { |
| 112 |
"disallowOverlappingRotation": false, |
| 113 |
"disallowRotationOnConfigChange": false, |
| 114 |
"logEventOnRecycle": "Time,Requests,Schedule,Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory", |
| 115 |
"periodicRestart": { |
| 116 |
"memory": 0, |
| 117 |
"privateMemory": 0, |
| 118 |
"requests": 0, |
| 119 |
"time": "1.05:00:00" |
| 120 |
} |
| 121 |
}, |
| 122 |
"startMode": "OnDemand", |
| 123 |
"state": "Started" |
| 124 |
}, |
| 125 |
"name": "DefaultAppPool" |
| 126 |
} |
| 127 |
]' |
| 128 |
contains: |
| 129 |
name: |
| 130 |
description: |
| 131 |
- Name of the application pool. |
| 132 |
type: str |
| 133 |
sample: DefaultAppPool |
| 134 |
attributes: |
| 135 |
description: |
| 136 |
- Dictionary that hold the information of a specific application pool. |
| 137 |
- For full list see U(https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/applicationpools/add/#attributes). |
| 138 |
type: dict |
| 139 |
contains: |
| 140 |
cpu: |
| 141 |
description: Key value pairs showing the current Application Pool cpu attributes. |
| 142 |
returned: success |
| 143 |
type: dict |
| 144 |
sample: |
| 145 |
action: "NoAction" |
| 146 |
limit: 0 |
| 147 |
resetInterval: |
| 148 |
Days: 0 |
| 149 |
Hours: 0 |
| 150 |
failure: |
| 151 |
description: Key value pairs showing the current Application Pool failure attributes. |
| 152 |
returned: success |
| 153 |
type: dict |
| 154 |
sample: |
| 155 |
autoShutdownExe: "" |
| 156 |
orphanActionExe: "" |
| 157 |
rapidFailProtextionInterval: |
| 158 |
Days: 0 |
| 159 |
Hours: 0 |
| 160 |
processModel: |
| 161 |
description: Key value pairs showing the current Application Pool processModel attributes. |
| 162 |
returned: success |
| 163 |
type: dict |
| 164 |
sample: |
| 165 |
identityType: "ApplicationPoolIdentity" |
| 166 |
logonType: "LogonBatch" |
| 167 |
pingInterval: |
| 168 |
Days: 0 |
| 169 |
Hours: 0 |
| 170 |
recycling: |
| 171 |
description: Key value pairs showing the current Application Pool recycling attributes. |
| 172 |
returned: success |
| 173 |
type: dict |
| 174 |
sample: |
| 175 |
disallowOverlappingRotation: false |
| 176 |
disallowRotationOnConfigChange: false |
| 177 |
logEventOnRecycle: "Time,Requests,Schedule,Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory" |