Make the example in proper yaml format - windows/win_iis_virtualdirectory.py (#18829)

* Make the example in proper yaml format

* Add r
pull/19418/head
Fabio Alessandro Locati 8 years ago committed by Matt Davis
parent 75bcec0ef5
commit 0aa16b36b7

@ -59,13 +59,25 @@ options:
author: Henrik Wallström author: Henrik Wallström
''' '''
EXAMPLES = ''' EXAMPLES = r'''
# This creates a virtual directory if it doesn't exist. - name: Create a virtual directory if it does not exist
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite state=present physical_path=c:\\virtualdirectory\\some" host win_iis_virtualdirectory:
name: somedirectory
site: somesite
state: present
physical_path: c:\virtualdirectory\some
# This removes a virtual directory if it exists. - name: Remove a virtual directory if it exists
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite state=absent" host win_iis_virtualdirectory:
name: somedirectory
site: somesite
state: absent
# This creates a virtual directory on an application if it doesn't exist. - name: Create a virtual directory on an application if it does not exist
$ ansible -i hosts -m win_iis_virtualdirectory -a "name='somedirectory' site=somesite application=someapp state=present physical_path=c:\\virtualdirectory\\some" host win_iis_virtualdirectory:
name: somedirectory
site: somesite
application: someapp
state: present
physical_path: c:\virtualdirectory\some
''' '''

Loading…
Cancel
Save