Docs updates to add examples for symbolic modes

Also fixes missing doc fragments missing in template and assemble
This commit is contained in:
James Cammarata 2014-08-26 09:09:08 -05:00
commit d1d3394046
4 changed files with 18 additions and 4 deletions

View file

@ -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():