Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_iis_virtualdirectory.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_virtualdirectory
10 short_description: Configures a virtual directory in IIS
11 description:
12 - Creates, Removes and configures a virtual directory in IIS.
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.virtual_directory) instead.
18 options:
19 name:
20 description:
21 - The name of the virtual directory to create or remove.
22 type: str
23 required: yes
24 state:
25 description:
26 - Whether to add or remove the specified virtual directory.
27 - Removing will remove the virtual directory and all under it (Recursively).
28 type: str
29 choices: [ absent, present ]
30 default: present
31 site:
32 description:
33 - The site name under which the virtual directory is created or exists.
34 type: str
35 required: yes
36 application:
37 description:
38 - The application under which the virtual directory is created or exists.
39 type: str
40 physical_path:
41 description:
42 - The physical path to the folder in which the new virtual directory is created.
43 - The specified folder must already exist.
44 type: str
45 connect_as:
46 description:
47 - The type of authentication to use for the virtual directory. 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 physical path.
49 - If C(specific_user), IIS will use the credentials provided in I(username) and I(password) to access the physical path.
50 type: str
51 choices: [pass_through, specific_user]
52 version_added: 1.9.0
53 username:
54 description:
55 - Specifies the user name of an account that can access configuration files and content for the virtual directory.
56 - Required when I(connect_as) is set to C(specific_user).
57 type: str
58 version_added: 1.9.0
59 password:
60 description:
61 - The password associated with I(username).
62 - Required when I(connect_as) is set to C(specific_user).
63 type: str
64 version_added: 1.9.0
65 seealso:
66 - module: community.windows.win_iis_webapplication
67 - module: community.windows.win_iis_webapppool
68 - module: community.windows.win_iis_webbinding
69 - module: community.windows.win_iis_website
70 author:
71 - Henrik Wallström (@henrikwallstrom)
72 '''
73
74 EXAMPLES = r'''
75 - name: Create a virtual directory if it does not exist
76 community.windows.win_iis_virtualdirectory:
77 name: somedirectory
78 site: somesite
79 state: present
80 physical_path: C:\virtualdirectory\some
81
82 - name: Remove a virtual directory if it exists
83 community.windows.win_iis_virtualdirectory:
84 name: somedirectory
85 site: somesite
86 state: absent
87
88 - name: Create a virtual directory on an application if it does not exist
89 community.windows.win_iis_virtualdirectory:
90 name: somedirectory
91 site: somesite
92 application: someapp
93 state: present
94 physical_path: C:\virtualdirectory\some
95 '''