Debian Codegraph @

ansible_collections/microsoft/iis/plugins/modules/web_application.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_application
7 short_description: Configures IIS web applications
8 description: >
9 Creates, removes, and configures IIS web applications.
10 requirements:
11 - IISAdministration PowerShell module
12 options:
13 application_pool:
14 description:
15 - The application pool in which the new site executes.
16 - If not specified, the application pool of the current website will be used.
17 type: str
18 connect_as:
19 description:
20 - The type of authentication to use for this application. Either V(pass_through) or V(specific_user).
21 - If V(pass_through), IIS will use the identity of the user or application pool identity to access the file system or network.
22 - If V(specific_user), IIS will use the credentials provided in O(username) and O(password) to access the file system or network.
23 - If not specified, the default is V(pass_through) and an existing application will not be modified.
24 type: str
25 choices:
26 - pass_through
27 - specific_user
28 name:
29 description:
30 - Name of the web application.
31 type: str
32 required: true
33 password:
34 description:
35 - The password associated with O(username).
36 - Required when O(connect_as=specific_user).
37 type: str
38 physical_path:
39 description:
40 - The physical path on the remote host to use for the new application.
41 - The specified folder must already exist.
42 type: str
43 aliases:
44 - path
45 site:
46 description:
47 - Name of the site on which the application is created.
48 type: str
49 required: true
50 state:
51 description:
52 - State of the web application.
53 - If V(absent), the web application will be removed.
54 - If V(present), the web application will be created if not already present.
55 type: str
56 choices:
57 - absent
58 - present
59 default: present
60 username:
61 description:
62 - Specifies the user name of an account that can access configuration files and content for this application.
63 - Required when O(connect_as=specific_user).
64 type: str
65 extends_documentation_fragment:
66 - ansible.builtin.action_common_attributes
67 attributes:
68 check_mode:
69 support: full
70 diff_mode:
71 support: none
72 platform:
73 platforms:
74 - windows
75 seealso:
76 - module: microsoft.iis.web_application_info
77 - module: microsoft.iis.web_app_pool
78 - module: microsoft.iis.website
79 author:
80 - Henrik Wallström (@henrikwallstrom)
81
82 EXAMPLES: |
83 - name: Add ACME web application on IIS
84 microsoft.iis.web_application:
85 name: api
86 site: acme
87 state: present
88 physical_path: C:\apps\acme\api
89
90 - name: Change connect_as to be specific user
91 microsoft.iis.web_application:
92 name: api
93 site: acme
94 connect_as: specific_user
95 username: acmeuser
96 password: acmepassword
97
98 - name: Delete ACME web application on IIS
99 microsoft.iis.web_application:
100 state: absent
101 name: api
102 site: acme
103
104 # Null is needed for Galaxy/AH to not fall flat
105 # https://github.com/ansible/ansible-hub-ui/blob/9b35b78f1f5c6a5ef2346d0470e431ba5f25d06b/src/components/render-plugin-doc.tsx#L226-L228
106 RETURN: ~