1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Erika Heidi 2014-04-23 16:00:22 +02:00
parent 0af8ca3fee
commit 036c7a7759

View file

@ -47,7 +47,7 @@ author: Michael DeHaan
EXAMPLES = ''' EXAMPLES = '''
- 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: path=/tmp/{{ item.path }} dest={{ item.dest }} state=link - file: src=/tmp/{{ item.path }} dest={{ item.dest }} state=link
with_items: with_items:
- { path: 'x', dest: 'y' } - { path: 'x', dest: 'y' }
- { path: 'z', dest: 'k' } - { path: 'z', dest: 'k' }