fixes examples in docs to use updated param name
This commit is contained in:
parent
43074a736d
commit
0524904dda
1 changed files with 6 additions and 6 deletions
|
@ -99,19 +99,19 @@ options:
|
||||||
- NoPropagateInherit
|
- NoPropagateInherit
|
||||||
- InheritOnly
|
- InheritOnly
|
||||||
default: "None"
|
default: "None"
|
||||||
author: Phil Schwartz, Trond Hindenes
|
author: Phil Schwartz (@schwartzmx), Trond Hindenes (@trondhindenes)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Restrict write,execute access to User Fed-Phil
|
# Restrict write,execute access to User Fed-Phil
|
||||||
$ ansible -i hosts -m win_acl -a "user=Fed-Phil src=C:\Important\Executable.exe type=deny rights='ExecuteFile,Write'" all
|
$ ansible -i hosts -m win_acl -a "user=Fed-Phil path=C:\Important\Executable.exe type=deny rights='ExecuteFile,Write'" all
|
||||||
|
|
||||||
# Playbook example
|
# Playbook example
|
||||||
# Add access rule to allow IIS_IUSRS FullControl to MySite
|
# Add access rule to allow IIS_IUSRS FullControl to MySite
|
||||||
---
|
---
|
||||||
- name: Add IIS_IUSRS allow rights
|
- name: Add IIS_IUSRS allow rights
|
||||||
win_acl:
|
win_acl:
|
||||||
src: 'C:\inetpub\wwwroot\MySite'
|
path: 'C:\inetpub\wwwroot\MySite'
|
||||||
user: 'IIS_IUSRS'
|
user: 'IIS_IUSRS'
|
||||||
rights: 'FullControl'
|
rights: 'FullControl'
|
||||||
type: 'allow'
|
type: 'allow'
|
||||||
|
@ -121,7 +121,7 @@ $ ansible -i hosts -m win_acl -a "user=Fed-Phil src=C:\Important\Executable.exe
|
||||||
|
|
||||||
# Remove previously added rule for IIS_IUSRS
|
# Remove previously added rule for IIS_IUSRS
|
||||||
- name: Remove FullControl AccessRule for IIS_IUSRS
|
- name: Remove FullControl AccessRule for IIS_IUSRS
|
||||||
src: 'C:\inetpub\wwwroot\MySite'
|
path: 'C:\inetpub\wwwroot\MySite'
|
||||||
user: 'IIS_IUSRS'
|
user: 'IIS_IUSRS'
|
||||||
rights: 'FullControl'
|
rights: 'FullControl'
|
||||||
type: 'allow'
|
type: 'allow'
|
||||||
|
@ -131,9 +131,9 @@ $ ansible -i hosts -m win_acl -a "user=Fed-Phil src=C:\Important\Executable.exe
|
||||||
|
|
||||||
# Deny Intern
|
# Deny Intern
|
||||||
- name: Deny Deny
|
- name: Deny Deny
|
||||||
src: 'C:\Administrator\Documents'
|
path: 'C:\Administrator\Documents'
|
||||||
user: 'Intern'
|
user: 'Intern'
|
||||||
rights: 'Read,Write,Modify,FullControl,Delete'
|
rights: 'Read,Write,Modify,FullControl,Delete'
|
||||||
type: 'deny'
|
type: 'deny'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue