Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_iis_webapplication.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright: (c) 2015, Henrik Wallström <[email protected]>
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: win_iis_webapplication
10 short_description: Configures IIS web applications
11 description:
12 - Creates, removes, and configures IIS web applications.
13 deprecated:
14 removed_in: 4.0.0
15 why: >-
16 This module has been deprecated and an alternative supported module is available in the C(microsoft.iis) collection.
17 alternative: Use C(microsoft.iis.web_application) instead.
18 options:
19 name:
20 description:
21 - Name of the web application.
22 type: str
23 required: yes
24 site:
25 description:
26 - Name of the site on which the application is created.
27 type: str
28 required: yes
29 state:
30 description:
31 - State of the web application.
32 type: str
33 choices: [ absent, present ]
34 default: present
35 physical_path:
36 description:
37 - The physical path on the remote host to use for the new application.
38 - The specified folder must already exist.
39 type: str
40 application_pool:
41 description:
42 - The application pool in which the new site executes.
43 - If not specified, the application pool of the current website will be used.
44 type: str
45 connect_as:
46 description:
47 - The type of authentication to use for this application. Either C(pass_through) or C(specific_user)
48 - If C(pass_through), IIS will use the identity of the user or application pool identity to access the file system or network.
49 - If C(specific_user), IIS will use the credentials provided in I(username) and I(password) to access the file system or network.
50 type: str
51 choices: [pass_through, specific_user]
52 username:
53 description:
54 - Specifies the user name of an account that can access configuration files and content for this application.
55 - Required when I(connect_as) is set to C(specific_user).
56 type: str
57 password:
58 description:
59 - The password associated with I(username).
60 - Required when I(connect_as) is set to C(specific_user).
61 type: str
62 seealso:
63 - module: community.windows.win_iis_virtualdirectory
64 - module: community.windows.win_iis_webapppool
65 - module: community.windows.win_iis_webbinding
66 - module: community.windows.win_iis_website
67 author:
68 - Henrik Wallström (@henrikwallstrom)
69 '''
70
71 EXAMPLES = r'''
72 - name: Add ACME webapplication on IIS.
73 community.windows.win_iis_webapplication:
74 name: api
75 site: acme
76 state: present
77 physical_path: C:\apps\acme\api
78 '''
79
80 RETURN = r'''
81 application_pool:
82 description: The used/implemented application_pool value.
83 returned: success
84 type: str
85 sample: DefaultAppPool
86 physical_path:
87 description: The used/implemented physical_path value.
88 returned: success
89 type: str
90 sample: C:\apps\acme\api
91 connect_as:
92 description: How IIS will try to authenticate to the physical_path.
93 returned: when the application exists
94 type: str
95 sample: specific_user
96 '''