Debian Codegraph @

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

raw symbols SCIP
1 ---
2 # Copyright: (c) 2024, Hen Yaish <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 DOCUMENTATION:
6 module: virtual_directory
7 short_description: Configures a virtual directory in IIS
8 description:
9 - Creates, removes, and configures a virtual directory in IIS.
10 requirements:
11 - IISAdministration PowerShell module
12 options:
13 application:
14 description:
15 - The application under which the virtual directory is created or exists.
16 type: str
17 connect_as:
18 description:
19 - The type of authentication to use for the virtual directory. Either V(pass_through) or V(specific_user).
20 - If V(pass_through), IIS uses the identity of the user or application pool identity to access the physical path.
21 - If V(specific_user), IIS uses the credentials provided in username and password to access the physical path.
22 type: str
23 choices: [pass_through, specific_user]
24 name:
25 description:
26 - The name of the virtual directory to create.
27 type: str
28 required: true
29 password:
30 description:
31 - The password associated with O(username).
32 - Required when O(connect_as=specific_user).
33 type: str
34 physical_path:
35 description:
36 - The physical path to the folder in which the new virtual directory is created.
37 - The specified folder must already exist.
38 - This must be set when O(state=present) and the virtual directory does not already exist.
39 type: str
40 site:
41 description:
42 - The site name under which the virtual directory should exist.
43 type: str
44 required: true
45 state:
46 description:
47 - Whether to add or remove the specified virtual directory.
48 - Removing will delete the virtual directory and all its contents recursively.
49 type: str
50 choices: [absent, present]
51 default: present
52 username:
53 description:
54 - Specifies the username of an account that can access configuration files and content for the virtual directory.
55 - Required when O(connect_as=specific_user).
56 type: str
57 extends_documentation_fragment:
58 - ansible.builtin.action_common_attributes
59 attributes:
60 check_mode:
61 support: full
62 diff_mode:
63 support: none
64 platform:
65 platforms:
66 - windows
67 seealso:
68 - module: microsoft.iis.virtual_directory_info
69 - module: microsoft.iis.web_application
70 - module: microsoft.iis.website
71
72 author:
73 - Hen Yaish (@hyaish)
74
75 EXAMPLES: |
76 - name: Create a virtual directory
77 microsoft.iis.virtual_directory:
78 name: somedirectory
79 site: somesite
80 state: present
81 physical_path: C:\virtualdirectory\some
82
83 - name: Remove a virtual directory
84 microsoft.iis.virtual_directory:
85 name: somedirectory
86 site: somesite
87 state: absent
88
89 - name: Create a virtual directory on an application
90 microsoft.iis.virtual_directory:
91 name: somedirectory
92 site: somesite
93 application: someapp
94 state: present
95 physical_path: C:\virtualdirectory\some
96
97 # Null is needed for Galaxy/AH to not fall flat
98 # https://github.com/ansible/ansible-hub-ui/blob/9b35b78f1f5c6a5ef2346d0470e431ba5f25d06b/src/components/render-plugin-doc.tsx#L226-L228
99 RETURN: ~