Skip to content

download

!download

Category: files

Download a URL to a remote path on the target using curl (must be installed). Not idempotent unless the file is absent — set force to re-fetch.

Parameters

NameTypeRequiredDescription
urlstringyesURL to download.
destpathyesRemote destination path (parent dir created if missing).
modestringnoOctal permission string applied via chmod after download.
ownerstringnoOwner applied via chown after download.
groupstringnoGroup applied via chown after download.
forceboolnoRe-download even if dest already exists.

Examples

- !download
  url: https://example.com/app-1.2.3.tar.gz
  dest: /opt/app/app.tar.gz
  force: true