community.windows.win_iis_virtualdirectory – Configures a virtual directory in IIS¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_iis_virtualdirectory
.
Parameters¶
See Also¶
See also
- community.windows.win_iis_webapplication
The official documentation on the community.windows.win_iis_webapplication module.
- community.windows.win_iis_webapppool
The official documentation on the community.windows.win_iis_webapppool module.
- community.windows.win_iis_webbinding
The official documentation on the community.windows.win_iis_webbinding module.
- community.windows.win_iis_website
The official documentation on the community.windows.win_iis_website module.
Examples¶
- name: Create a virtual directory if it does not exist
community.windows.win_iis_virtualdirectory:
name: somedirectory
site: somesite
state: present
physical_path: C:\virtualdirectory\some
- name: Remove a virtual directory if it exists
community.windows.win_iis_virtualdirectory:
name: somedirectory
site: somesite
state: absent
- name: Create a virtual directory on an application if it does not exist
community.windows.win_iis_virtualdirectory:
name: somedirectory
site: somesite
application: someapp
state: present
physical_path: C:\virtualdirectory\some
Authors¶
Henrik Wallström (@henrikwallstrom)