summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-19 22:57:21 +0100
committerMatt Davis <nitzmahone@users.noreply.github.com>2016-12-19 13:57:21 -0800
commit3c64ccd6e11b3d439df1408eefa26be57a1f0cff (patch)
treefd895df31572f3b0d5883d7f979ace02f227647b
parentc546c12b60e11ebce42ceaf2d4486832f15610c7 (diff)
downloadansible-3c64ccd6e11b3d439df1408eefa26be57a1f0cff.tar.gz
Make examples in YAML format - windows/win_acl.py (#18836)
* Make examples in YAML format - windows/win_acl.py * Raw string
-rw-r--r--lib/ansible/modules/windows/win_acl.py47
1 files changed, 24 insertions, 23 deletions
diff --git a/lib/ansible/modules/windows/win_acl.py b/lib/ansible/modules/windows/win_acl.py
index 4e6e9cb7ad..c3bc641beb 100644
--- a/lib/ansible/modules/windows/win_acl.py
+++ b/lib/ansible/modules/windows/win_acl.py
@@ -109,38 +109,39 @@ options:
author: Phil Schwartz (@schwartzmx), Trond Hindenes (@trondhindenes), Hans-Joachim Kliemeck (@h0nIg)
'''
-EXAMPLES = '''
-# Restrict write,execute access to User Fed-Phil
-$ ansible -i hosts -m win_acl -a "user=Fed-Phil path=C:\Important\Executable.exe type=deny rights='ExecuteFile,Write'" all
+EXAMPLES = r'''
+- name: Restrict write and execute access to User Fed-Phil
+ win_acl:
+ user: Fed-Phil
+ path: C:\Important\Executable.exe
+ type: deny
+ rights: ExecuteFile,Write
-# Playbook example
-# Add access rule to allow IIS_IUSRS FullControl to MySite
----
- name: Add IIS_IUSRS allow rights
win_acl:
- path: 'C:\inetpub\wwwroot\MySite'
- user: 'IIS_IUSRS'
- rights: 'FullControl'
- type: 'allow'
- state: 'present'
- inherit: 'ContainerInherit, ObjectInherit'
+ path: C:\inetpub\wwwroot\MySite
+ user: IIS_IUSRS
+ rights: FullControl
+ type: allow
+ state: present
+ inherit: ContainerInherit, ObjectInherit
propagation: 'None'
# Remove previously added rule for IIS_IUSRS
- name: Remove FullControl AccessRule for IIS_IUSRS
- path: 'C:\inetpub\wwwroot\MySite'
- user: 'IIS_IUSRS'
- rights: 'FullControl'
- type: 'allow'
- state: 'absent'
- inherit: 'ContainerInherit, ObjectInherit'
+ path: C:\inetpub\wwwroot\MySite
+ user: IIS_IUSRS
+ rights: FullControl
+ type: allow
+ state: absent
+ inherit: ContainerInherit, ObjectInherit
propagation: 'None'
# Deny Intern
- name: Deny Deny
- path: 'C:\Administrator\Documents'
- user: 'Intern'
- rights: 'Read,Write,Modify,FullControl,Delete'
- type: 'deny'
- state: 'present'
+ path: C:\Administrator\Documents
+ user: Intern
+ rights: Read,Write,Modify,FullControl,Delete
+ type: deny
+ state: present
'''