ANSIBLE.GET_URL(3)

NAME
get_url - Downloads files from HTTP, HTTPS, or FTP to node

DESCRIPTION

Downloads files from HTTP, HTTPS, or FTP to the remote server. The remote server must have direct access to the remote resource.

By default, if an environment variable <protocol>_proxy is set on the target host, requests will be sent through that proxy. This behaviour can be overriden by setting a variable for this task (see `setting the environment <http://ansible.cc/docs/playbooks2.html#setting-the-environment-and-working-with-proxies>`_), or by using the use_proxy option.

OPTIONS

dest
    absolute path of where to download the file to.If dest is a directory, the basename of the file on the remote server will be used. If a directory, force=yes must also be set.(required)

force
    if yes, will download the file every time and replace the file if the contents change. If no, the file will only be downloaded if the destination does not exist. Generally should be yes only for small local files. prior to 0.6, acts if yes by default. Choices: yes,no. (default: no)(Added in Ansible version 0.7.)

others
    all arguments accepted by the file module also work here

url HTTP, HTTPS, or FTP URL in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path(required)

use_proxy
    if no, it will not use a proxy, even if one is defined by in an environment variable on the target hosts. Choices: yes,no. (default: yes."

NOTES

This module doesn't yet support configuration for proxies.
get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440

AUTHOR
Jan-Piet Mens

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#get-url