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

62 lines
No EOL
1.8 KiB
JSON

{
"requirements": [
"urllib2",
"urlparse"
],
"description": [
"Downloads files from HTTP, HTTPS, or FTP to the remote server. The remote server must have direct access to the remote resource."
],
"author": "Jan-Piet Mens",
"notes": [
"This module doesn't yet support configuration for proxies or passwords."
],
"docuri": "get-url",
"module": "get_url",
"filename": "library/get_url",
"examples": [
{
"code": "get_url url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440",
"description": "Example from Ansible Playbooks"
}
],
"version_added": "0.6",
"short_description": "Downloads files from HTTP, HTTPS, or FTP to node",
"now_date": "2012-10-09",
"options": {
"url": {
"default": null,
"required": true,
"description": [
"HTTP, HTTPS, or FTP URL"
],
"aliases": []
},
"dest": {
"default": null,
"required": true,
"description": [
"absolute path of where to download the file to.",
"If I(dest) is a directory, the basename of the file on the remote server will be used. If a directory, I(thirsty=yes) must also be set."
]
},
"thirsty": {
"default": "no",
"required": false,
"description": [
"if C(yes), will download the file every time and replace the file if the contents change. if C(no), the file will only be downloaded if the destination does not exist. Generally should be C(yes) only for small local files. prior to 0.6, acts if C(yes) by default."
],
"version_added": "0.7",
"choices": [
"yes",
"no"
]
},
"others": {
"required": false,
"description": [
"all arguments accepted by the M(file) module also work here"
]
}
},
"ansible_version": "0.8"
}