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

Update fetch docs

This commit is contained in:
Michael DeHaan 2012-04-18 21:21:49 -04:00
parent da97024419
commit a510bdc469

View file

@ -146,12 +146,16 @@ from remote machines and storing them locally in a file tree, organized by hostn
*dest*: *dest*:
* A directory to save the file into. For example, if the 'dest' directory is '/foo', a src file named '/tmp/bar' on host 'host.example.com', would be saved into '/foo/host.example.com/bar'. * A directory to save the file into. For example, if the 'dest' directory is '/foo', a src file named '/tmp/bar' on host 'host.example.com', would be saved into '/foo/host.example.com/tmp/bar' (in Ansible 0.0.3 and later).
The fetch module is a useful way to gather log files from remote systems. If you require The fetch module is a useful way to gather log files from remote systems. If you require
fetching multiple files from remote systems, you may wish to execute a tar command and fetching multiple files from remote systems, you may wish to execute a tar command and
then fetch the tarball. then fetch the tarball.
Example::
fetch src=/var/log/messages dest=/home/logtree
file file
```` ````