get_url

Collection: builtin

Full Name: parallax.builtin.get_url

Aliases: ansible.builtin.get_url, get_url

Synopsis

Manage get url

Parameters

NameTypeRequiredDefaultDescription
urlstringyesHTTP, HTTPS, or FTP URL to download from
deststringyesAbsolute path of where to download the file to
forceboolfalseIf true, will download the file every time
checksumstringIf a checksum is passed to this parameter, the digest of the destination file will be calculated after it is downloaded
timeoutint10Timeout in seconds for URL request
validate_certsbooltrueIf false, SSL certificates will not be validated
use_proxybooltrueIf false, it will not use a proxy
url_usernamestringThe username for HTTP authentication
url_passwordstringThe password for HTTP authentication
usernamestringThe username for HTTP authentication (alias for url_username)
passwordstringThe password for HTTP authentication (alias for url_password)
force_basic_authboolfalseForce basic authentication
headersmap[string]stringmap[]Add custom HTTP headers
client_certstringPEM formatted certificate chain file to be used for SSL client authentication
client_keystringPEM formatted file that contains your private key to be used for SSL client authentication
modestringThe permissions of the destination file
ownerstringName of the user that should own the file
groupstringName of the group that should own the file
backupboolfalseCreate a backup file including the timestamp information
tmp_deststringAbsolute path of where temporary file is downloaded to
http_agentstringansible-httpgetHeader to identify as, generally appears in web server logs

Example

- name: Example get_url task
  get_url:
    url: <your_url>
    dest: <your_dest>