Fixed confusion in the docs
As 'path' is actually alias for 'dest', this could be confusing.
This commit is contained in:
parent
58573187f8
commit
a05df49998
1 changed files with 3 additions and 3 deletions
|
@ -93,10 +93,10 @@ EXAMPLES = '''
|
||||||
# change file ownership, group and mode. When specifying mode using octal numbers, first digit should always be 0.
|
# 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: 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=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link
|
||||||
- file: src=/tmp/{{ item.path }} dest={{ item.dest }} state=link
|
- file: src=/tmp/{{ item.src }} dest={{ item.dest }} state=link
|
||||||
with_items:
|
with_items:
|
||||||
- { path: 'x', dest: 'y' }
|
- { src: 'x', dest: 'y' }
|
||||||
- { path: 'z', dest: 'k' }
|
- { src: 'z', dest: 'k' }
|
||||||
|
|
||||||
# touch a file, using symbolic modes to set the permissions (equivalent to 0644)
|
# 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"
|
- file: path=/etc/foo.conf state=touch mode="u=rw,g=r,o=r"
|
||||||
|
|
Loading…
Reference in a new issue