mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Unified document generator and make to generate JSON and JS files
This commit is contained in:
committed by
Michael DeHaan
parent
85fb83a5db
commit
ee679c0190
37
docs/json/fetch.json
Normal file
37
docs/json/fetch.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
Reference in New Issue
Block a user