mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
File Module docs, adding mode permission example with sticky bit (#36151)
* File Module docs, adding mode permission example with sticky bit
This commit is contained in:
committed by
John R Barker
parent
cf9b427add
commit
ef9dac548f
@@ -84,6 +84,11 @@ EXAMPLES = '''
|
|||||||
owner: foo
|
owner: foo
|
||||||
group: foo
|
group: foo
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
- file:
|
||||||
|
path: /work
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 01777
|
||||||
- file:
|
- file:
|
||||||
src: /file/to/link/to
|
src: /file/to/link/to
|
||||||
dest: /path/to/symlink
|
dest: /path/to/symlink
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ options:
|
|||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
description:
|
description:
|
||||||
- Mode the file or directory should be. For those used to I(/usr/bin/chmod) remember that modes are actually octal numbers (like 0644).
|
- Mode the file or directory should be. For those used to I(/usr/bin/chmod) remember that modes are actually octal numbers (like C(0644) or C(01777)).
|
||||||
Leaving off the leading zero will likely have unexpected results.
|
Leaving off the leading zero will likely have unexpected results.
|
||||||
As of version 1.8, the mode may be specified as a symbolic mode (for example, C(u+rwx) or C(u=rw,g=r,o=r)).
|
As of version 1.8, the mode may be specified as a symbolic mode (for example, C(u+rwx) or C(u=rw,g=r,o=r)).
|
||||||
owner:
|
owner:
|
||||||
|
|||||||
Reference in New Issue
Block a user