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
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | URL to download. |
dest | path | yes | Remote destination path (parent dir created if missing). |
mode | string | no | Octal permission string applied via chmod after download. |
owner | string | no | Owner applied via chown after download. |
group | string | no | Group applied via chown after download. |
force | bool | no | Re-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