mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"requirements": [],
|
|
"description": [
|
|
"This module works like M(copy), but in reverse. It is used for fetching files from remote machines and storing them locally in a file tree, organized by hostname."
|
|
],
|
|
"author": "Michael DeHaan",
|
|
"docuri": "fetch",
|
|
"module": "fetch",
|
|
"filename": "library/fetch",
|
|
"examples": [
|
|
{
|
|
"code": "fetch src=/var/log/messages dest=/home/logtree",
|
|
"description": "Example from Ansible Playbooks"
|
|
}
|
|
],
|
|
"version_added": "0.2",
|
|
"short_description": "Fetches a file from remote nodes",
|
|
"now_date": "2012-10-09",
|
|
"options": {
|
|
"dest": {
|
|
"default": null,
|
|
"required": true,
|
|
"description": [
|
|
"A directory to save the file into. For example, if the I(dest) directory is C(/backup) a src file named C(/etc/profile) on host C(host.example.com), would be saved into C(/backup/host.example.com/etc/profile)"
|
|
]
|
|
},
|
|
"src": {
|
|
"default": null,
|
|
"required": true,
|
|
"description": [
|
|
"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."
|
|
],
|
|
"aliases": []
|
|
}
|
|
},
|
|
"ansible_version": "0.8"
|
|
} |