Sep 19, 2019 in Ansible
Q: Ansible get_url

1 Answer

0 votes
Oct 11, 2019

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


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



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, thirsty=yes must also be set.(required)


all arguments accepted by the file module also work here


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.)


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


This module doesn't yet support configuration for proxies.


Example from Ansible Playbooks
Click here to read more about Ansible
Click here to read more about Insurance