mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Docs updates to add examples for symbolic modes
Also fixes missing doc fragments missing in template and assemble
This commit is contained in:
parent
811ff49f78
commit
d1d3394046
4 changed files with 18 additions and 4 deletions
|
@ -94,6 +94,13 @@ EXAMPLES = '''
|
|||
with_items:
|
||||
- { path: 'x', dest: 'y' }
|
||||
- { path: 'z', dest: 'k' }
|
||||
|
||||
# touch a file, using symbolic modes to set the permissions (equivalent to 0644)
|
||||
- file: path=/etc/foo.conf state=touch mode="u=rw,g=r,o=r"
|
||||
|
||||
# touch the same file, but add/remove some permissions
|
||||
- file: path=/etc/foo.conf state=touch mode="u+rw,g-wx,o-rwx"
|
||||
|
||||
'''
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue