file_copy_from_local_source_with_check
Ensure that a file or directory is copied from a local source if a check command succeeds.
⚙️ Compatible targets: Linux
⚠️ Deprecated: This method is deprecated and should not be used.
Parameters
Name | Documentation |
---|---|
source | Source file (absolute path on the target node). This parameter is required. |
path | Destination file (absolute path on the target node). This parameter is required. |
check_command | Command to run, it will get the source path as argument. This parameter is required. |
rc_ok | Return codes to be considered as valid, separated by a comma (default is 0). This parameter is optional. |
Example
method: file_copy_from_local_source_with_check
params:
path: VALUE
check_command: VALUE
source: VALUE
rc_ok: OPTIONAL_VALUE
Documentation
This method is a conditional file copy.