file_check_hardlink
Checks if two files are the same (hard links).
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
path | File name #1 (absolute path on the target node). This parameter is required. |
path_2 | File 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.