Debian Codegraph @

ansible_collections/microsoft/iis/plugins/modules/web_app_pool.yml

raw symbols SCIP
1 ---
2 # Copyright: (c) 2024, Ansible Project
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 DOCUMENTATION:
6 module: web_app_pool
7 short_description: Configure IIS Web Application Pools
8 description:
9 - Creates, removes and configures an IIS Web Application Pool.
10 requirements:
11 - IISAdministration PowerShell module
12 options:
13 attributes:
14 description:
15 - This field is a free form dictionary value for the application pool attributes.
16 - These attributes are based on the naming standard at
17 U(https://www.iis.net/configreference/system.applicationhost/applicationpools/add#005),
18 see the examples section for more details on how to set this.
19 - You can also set the attributes of child elements like cpu and processModel, see the examples
20 to see how it is done.
21 - While you can use the numeric values for enums it is recommended to use
22 the enum name itself, e.g., use SpecificUser instead of 3 for processModel.identityType.
23 - managedPipelineMode may be either "Integrated" or "Classic".
24 - startMode may be either "OnDemand" or "AlwaysRunning".
25 - Use O(state) to modify the state of the app pool.
26 - When trying to set C(processModel.password) and you receive a 'Value does fall within the
27 expected range' error, you have a corrupted keystore. Please follow
28 U(http://structuredsight.com/2014/10/26/im-out-of-range-youre-out-of-range/) to help fix your host.
29 type: dict
30 default: {}
31 name:
32 description:
33 - Name of the application pool.
34 type: str
35 required: true
36 state:
37 description:
38 - The state of the application pool.
39 - If V(absent) will ensure the app pool is removed.
40 - If V(present) will ensure the app pool is configured and exists.
41 - If V(restarted) will ensure the app pool exists and will restart, this is never idempotent.
42 - If V(started) will ensure the app pool exists and is started.
43 - If V(stopped) will ensure the app pool exists and is stopped.
44 type: str
45 choices: [absent, present, restarted, started, stopped]
46 default: present
47 extends_documentation_fragment:
48 - ansible.builtin.action_common_attributes
49 attributes:
50 check_mode:
51 support: full
52 diff_mode:
53 support: none
54 platform:
55 platforms:
56 - windows
57 seealso:
58 - module: microsoft.iis.web_app_pool_info
59 author:
60 - Henrik Wallström (@henrikwallstrom)
61 - Jordan Borean (@jborean93)
62
63 EXAMPLES: |
64 - name: Create a new application pool in 'Started' state
65 microsoft.iis.web_app_pool:
66 name: AppPool
67 state: started
68
69 - name: Stop an application pool
70 microsoft.iis.web_app_pool:
71 name: AppPool
72 state: stopped
73
74 - name: Restart an application pool (non-idempotent)
75 microsoft.iis.web_app_pool:
76 name: AppPool
77 state: restarted
78
79 - name: Change application pool attributes using new dict style
80 microsoft.iis.web_app_pool:
81 name: AppPool
82 attributes:
83 managedRuntimeVersion: v4.0
84 autoStart: false
85
86 - name: Creates an application pool, sets attributes and starts it
87 microsoft.iis.web_app_pool:
88 name: AnotherAppPool
89 state: started
90 attributes:
91 managedRuntimeVersion: v4.0
92 autoStart: false
93
94 - name: Creates an application pool with "No Managed Code" for .Net compatibility
95 microsoft.iis.web_app_pool:
96 name: AnotherAppPool
97 state: started
98 attributes:
99 managedRuntimeVersion: ''
100 autoStart: false
101
102 - name: Manage child element and set identity of application pool
103 microsoft.iis.web_app_pool:
104 name: IdentitiyAppPool
105 state: started
106 attributes:
107 managedPipelineMode: Classic
108 processModel.identityType: SpecificUser
109 processModel.userName: "{{ ansible_user }}"
110 processModel.password: "{{ ansible_password }}"
111 processModel.loadUserProfile: true
112
113 - name: Manage a timespan attribute
114 microsoft.iis.web_app_pool:
115 name: TimespanAppPool
116 state: started
117 attributes:
118 recycling.periodicRestart.time: "00:00:05:00.000000"
119 recycling.periodicRestart.schedule: ["00:10:00", "05:30:00"]
120 processModel.pingResponseTime: "00:03:00"
121
122 # Null is needed for Galaxy/AH to not fall flat
123 # https://github.com/ansible/ansible-hub-ui/blob/9b35b78f1f5c6a5ef2346d0470e431ba5f25d06b/src/components/render-plugin-doc.tsx#L226-L228
124 RETURN: ~