file_download
Download a file if it does not exist, using curl with a fallback on wget.
⚙️ Compatible targets: Linux, Windows
⚠️ Deprecated: This method is deprecated and should not be used.
Parameters
Name | Documentation |
---|---|
source | URL to download from. This parameter is required. |
path | File destination (absolute path on the target node). This parameter is required. |
Example
method: file_download
params:
path: VALUE
source: VALUE
Documentation
This method finds a HTTP command-line tool and downloads the given source into the destination.
It tries curl
first, and wget
as fallback.