From 07c5143a9977afc271fb7ac57214c3d59008adb8 Mon Sep 17 00:00:00 2001 From: varnav Date: Wed, 23 Sep 2015 08:24:16 +0300 Subject: [PATCH] Fixed confusion in the docs As 'path' is actually alias for 'dest', this could be confusing. --- files/file.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/file.py b/files/file.py index c3267f7f18b..8219990d1f6 100644 --- a/files/file.py +++ b/files/file.py @@ -93,10 +93,10 @@ 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 +- file: src=/tmp/{{ item.src }} dest={{ item.dest }} state=link with_items: - - { path: 'x', dest: 'y' } - - { path: 'z', dest: 'k' } + - { src: 'x', dest: 'y' } + - { src: '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"