2015-04-24 08:48:02 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-02-25 02:09:54 +00:00
|
|
|
# Copyright: (c) 2015, Henrik Wallström <henrik@wallstroms.nu>
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
2015-04-24 08:48:02 +00:00
|
|
|
|
2017-08-16 03:16:38 +00:00
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
2017-03-14 16:07:22 +00:00
|
|
|
'status': ['preview'],
|
|
|
|
'supported_by': 'community'}
|
|
|
|
|
2017-01-19 01:57:33 +00:00
|
|
|
DOCUMENTATION = r'''
|
2015-04-24 08:48:02 +00:00
|
|
|
---
|
|
|
|
module: win_iis_virtualdirectory
|
2015-06-25 14:05:29 +00:00
|
|
|
version_added: "2.0"
|
2018-02-25 02:09:54 +00:00
|
|
|
short_description: Configures a virtual directory in IIS
|
2015-04-24 08:48:02 +00:00
|
|
|
description:
|
2015-10-19 14:04:17 +00:00
|
|
|
- Creates, Removes and configures a virtual directory in IIS.
|
2015-04-24 08:48:02 +00:00
|
|
|
options:
|
|
|
|
name:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- The name of the virtual directory to create or remove.
|
|
|
|
required: yes
|
2015-04-24 08:48:02 +00:00
|
|
|
state:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- Whether to add or remove the specified virtual directory.
|
|
|
|
choices: [ absent, present ]
|
2015-10-19 14:04:17 +00:00
|
|
|
default: present
|
2015-04-24 08:48:02 +00:00
|
|
|
site:
|
|
|
|
description:
|
|
|
|
- The site name under which the virtual directory is created or exists.
|
2018-02-25 02:09:54 +00:00
|
|
|
required: yes
|
2015-04-24 08:48:02 +00:00
|
|
|
application:
|
|
|
|
description:
|
|
|
|
- The application under which the virtual directory is created or exists.
|
|
|
|
physical_path:
|
|
|
|
description:
|
2018-02-25 02:09:54 +00:00
|
|
|
- The physical path to the folder in which the new virtual directory is created.
|
|
|
|
- The specified folder must already exist.
|
|
|
|
author:
|
2018-11-20 19:31:35 +00:00
|
|
|
- Henrik Wallström (@henrikwallstrom)
|
2015-04-24 08:48:02 +00:00
|
|
|
'''
|
|
|
|
|
2016-12-15 22:53:30 +00:00
|
|
|
EXAMPLES = r'''
|
|
|
|
- name: Create a virtual directory if it does not exist
|
|
|
|
win_iis_virtualdirectory:
|
|
|
|
name: somedirectory
|
|
|
|
site: somesite
|
|
|
|
state: present
|
2018-02-25 02:09:54 +00:00
|
|
|
physical_path: C:\virtualdirectory\some
|
2015-10-19 14:04:17 +00:00
|
|
|
|
2016-12-15 22:53:30 +00:00
|
|
|
- name: Remove a virtual directory if it exists
|
|
|
|
win_iis_virtualdirectory:
|
|
|
|
name: somedirectory
|
|
|
|
site: somesite
|
|
|
|
state: absent
|
2015-04-24 08:48:02 +00:00
|
|
|
|
2016-12-15 22:53:30 +00:00
|
|
|
- name: Create a virtual directory on an application if it does not exist
|
|
|
|
win_iis_virtualdirectory:
|
|
|
|
name: somedirectory
|
|
|
|
site: somesite
|
|
|
|
application: someapp
|
|
|
|
state: present
|
2018-02-25 02:09:54 +00:00
|
|
|
physical_path: C:\virtualdirectory\some
|
2015-04-24 08:48:02 +00:00
|
|
|
'''
|