Checks if two files are the same (hard links).

⚙️ Compatible targets: Linux

Parameters

NameDocumentation
pathFile name #1 (absolute path on the target node).

This parameter is required.
path_2File name #2 (absolute path on the target node).

This parameter is required.

Example

method: file_check_hardlink
params:
  path: VALUE
  path_2: VALUE

Documentation

This bundle will define a condition file_check_hardlink_${path}_{ok, reached, kept} if the two files ${path} and ${path_2} are hard links of each other, or file_check_hardlink_${path}_{not_ok, reached, not_kept, failed} if if the files are not hard links.