From 036c7a775943a46461022c9028f18216a8860fac Mon Sep 17 00:00:00 2001 From: Erika Heidi Date: Wed, 23 Apr 2014 16:00:22 +0200 Subject: [PATCH] Possible docs error: 'path' instead of 'src' I came to this example today (line 50), and when I tried it, I got an error: `msg: src and dest are required for creating links` So, I changed **path** to **src** and it worked fine. Looks like the example is wrong, since the docs say "dest" is already an alias for "path", in which case we would have 2 "path" definitions. --- library/files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/files/file b/library/files/file index 3b4aaa9e23..13beb646e7 100644 --- a/library/files/file +++ b/library/files/file @@ -47,7 +47,7 @@ author: Michael DeHaan EXAMPLES = ''' - 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: path=/tmp/{{ item.path }} dest={{ item.dest }} state=link +- file: src=/tmp/{{ item.path }} dest={{ item.dest }} state=link with_items: - { path: 'x', dest: 'y' } - { path: 'z', dest: 'k' }