From a510bdc469270034136846dae06b38282a48ebb2 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 18 Apr 2012 21:21:49 -0400 Subject: [PATCH] Update fetch docs --- rst/modules.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rst/modules.rst b/rst/modules.rst index 9f0add4eb02..51211c26b12 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -146,12 +146,16 @@ from remote machines and storing them locally in a file tree, organized by hostn *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 fetching multiple files from remote systems, you may wish to execute a tar command and then fetch the tarball. +Example:: + + fetch src=/var/log/messages dest=/home/logtree + file ````