file_from_local_source

Ensure that a file or directory is copied from a local source.

⚙️ Compatible targets: Linux, Windows

Parameters

NameDocumentation
sourceSource file (absolute path on the target node).

This parameter is required.
pathDestination file (absolute path on the target node).

This parameter is required.

Outcome conditions

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

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

Example

method: file_from_local_source
params:
  path: VALUE
  source: VALUE

Documentation

Ensure that a file or directory is copied from a local source on and from the target node. The copy is not recursive if the target is a directory. To copy recursively a folder from a local source, use the File from local source recursion method.