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

NameDocumentation
sourceURL to download from.

This parameter is required.
pathFile destination (absolute path on the target node).

This parameter is required.

Outcome conditions

You need to replace ${path} with its actual canonified value.

  • ✅ Ok: file_download_${path}_ok
    • ☑️ Already compliant: file_download_${path}_kept
    • 🟨 Repaired: file_download_${path}_repaired
  • ❌ Error: file_download_${path}_error

Example

method: file_download
params:
  source: VALUE
  path: 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.