1.2 KiB
1.2 KiB
fetch
0.2
This module works like copy
, but in reverse. It is used
for fetching files from remote machines and storing them locally in a
file tree, organized by hostname.
parameter | required | default | choices | comments |
---|---|---|---|---|
dest | yes | A directory to save the file into. For example, if the dest directory is /backup a src file named /etc/profile on host host.example.com , would be saved into /backup/host.example.com/etc/profile |
||
src | yes | The file on the remote system to fetch. This must be a file, not a directory. Recursive fetching may be supported in a later release. |
Example from Ansible Playbooks
fetch src=/var/log/messages dest=/home/logtree