mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adds examples for win_iis_virtualdirectory
This commit is contained in:
parent
d8dc9485f4
commit
2b860bbae8
1 changed files with 11 additions and 7 deletions
|
@ -22,9 +22,9 @@ DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: win_iis_virtualdirectory
|
module: win_iis_virtualdirectory
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
short_description: Configures a IIS virtual directories.
|
short_description: Configures a virtual directory in IIS.
|
||||||
description:
|
description:
|
||||||
- Creates, Removes and configures a IIS Web site
|
- Creates, Removes and configures a virtual directory in IIS.
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
@ -39,14 +39,11 @@ options:
|
||||||
- absent
|
- absent
|
||||||
- present
|
- present
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: present
|
||||||
aliases: []
|
|
||||||
site:
|
site:
|
||||||
description:
|
description:
|
||||||
- The site name under which the virtual directory is created or exists.
|
- The site name under which the virtual directory is created or exists.
|
||||||
required: false
|
required: true
|
||||||
default: null
|
|
||||||
aliases: []
|
|
||||||
application:
|
application:
|
||||||
description:
|
description:
|
||||||
- The application under which the virtual directory is created or exists.
|
- The application under which the virtual directory is created or exists.
|
||||||
|
@ -63,5 +60,12 @@ author: Henrik Wallström
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
# This creates a virtual directory if it doesn't exist.
|
||||||
|
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite state=present physical_path=c:\\virtualdirectory\\some" host
|
||||||
|
|
||||||
|
# This removes a virtual directory if it exists.
|
||||||
|
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite state=absent" host
|
||||||
|
|
||||||
|
# This creates a virtual directory on an application if it doesn't exist.
|
||||||
|
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite application=someapp state=present physical_path=c:\\virtualdirectory\\some" host
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue