diff options
author | Sam Doran <sdoran@ansible.com> | 2016-10-12 15:36:47 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2016-11-14 12:56:00 -0500 |
commit | 5ef188bcf15f8668f70f7eb96557bd240c2952f5 (patch) | |
tree | 17c9053d8f0c144425c9bd9daeaaff2fe82016ba | |
parent | c20e4b12e3a85e41c60adbaceb406e837c6c82d8 (diff) | |
download | ansible-modules-core-5ef188bcf15f8668f70f7eb96557bd240c2952f5.tar.gz |
Change examples syntax on acl module
-rw-r--r-- | files/acl.py | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/files/acl.py b/files/acl.py index 2b898452..4974b6bb 100644 --- a/files/acl.py +++ b/files/acl.py @@ -97,19 +97,38 @@ notes: EXAMPLES = ''' # 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 -- 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 -- 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 -- 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 -- acl: name=/etc/foo.conf +- acl: + name: /etc/foo.conf register: acl_info ''' |