Change examples syntax on acl module
This commit is contained in:
parent
6d06f80097
commit
c694fe6ca4
1 changed files with 24 additions and 5 deletions
|
@ -97,19 +97,38 @@ notes:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Grant user Joe read access to a file
|
# Grant user Joe read access to a file
|
||||||
- acl: name=/etc/foo.conf entity=joe etype=user permissions="r" state=present
|
- acl:
|
||||||
|
name: /etc/foo.conf
|
||||||
|
entity: joe
|
||||||
|
etype: user
|
||||||
|
permissions: r
|
||||||
|
state: present
|
||||||
|
|
||||||
# Removes the acl for Joe on a specific file
|
# Removes the acl for Joe on a specific file
|
||||||
- acl: name=/etc/foo.conf entity=joe etype=user state=absent
|
- acl:
|
||||||
|
name: /etc/foo.conf
|
||||||
|
entity: joe
|
||||||
|
etype: user
|
||||||
|
state: absent
|
||||||
|
|
||||||
# Sets default acl for joe on foo.d
|
# Sets default acl for joe on foo.d
|
||||||
- acl: name=/etc/foo.d entity=joe etype=user permissions=rw default=yes state=present
|
- acl:
|
||||||
|
name: /etc/foo.d
|
||||||
|
entity: joe
|
||||||
|
etype: user
|
||||||
|
permissions: rw
|
||||||
|
default: yes
|
||||||
|
state: present
|
||||||
|
|
||||||
# Same as previous but using entry shorthand
|
# Same as previous but using entry shorthand
|
||||||
- acl: name=/etc/foo.d entry="default:user:joe:rw-" state=present
|
- acl:
|
||||||
|
name: /etc/foo.d
|
||||||
|
entry: "default:user:joe:rw-"
|
||||||
|
state: present
|
||||||
|
|
||||||
# Obtain the acl for a specific file
|
# Obtain the acl for a specific file
|
||||||
- acl: name=/etc/foo.conf
|
- acl:
|
||||||
|
name: /etc/foo.conf
|
||||||
register: acl_info
|
register: acl_info
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue