Create a symlink at a destination path and pointing to a source target. This is also possible to enforce its creation.

⚙️ Compatible targets: Linux

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.
enforceForce symlink if file already exist (true or false).

This parameter is required.

Outcome conditions

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

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

Example

method: file_symlink_present_option
params:
  source: VALUE
  path: VALUE
  enforce: VALUE