Configures a virtual directory in IIS
- Creates, Removes and configures a virtual directory in IIS.
.. seealso:: :ref:`community.windows.win_iis_webapplication_module` The official documentation on the **community.windows.win_iis_webapplication** module. :ref:`community.windows.win_iis_webapppool_module` The official documentation on the **community.windows.win_iis_webapppool** module. :ref:`community.windows.win_iis_webbinding_module` The official documentation on the **community.windows.win_iis_webbinding** module. :ref:`community.windows.win_iis_website_module` The official documentation on the **community.windows.win_iis_website** module.
- 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
- Henrik Wallström (@henrikwallstrom)