diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 35bb52ab1e..9b17ae40d2 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -88,6 +88,7 @@ options: ''' EXAMPLES = ''' +# change file ownership, group and mode. When specifying mode using octal numbers, first digit should always be 0. - file: path=/etc/foo.conf owner=foo group=foo mode=0644 - file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link - file: src=/tmp/{{ item.path }} dest={{ item.dest }} state=link