Uploading artifacts v23
You can define artifacts
to create or copy files to target instances:
The following types are supported:
Use
path
to create or remove and change the ownership or mode of files and directories (takes the same parameters as Ansible'sfile
module, which it uses internally)Use
file
to copy a file from the controller and set the ownership and mode (usescopy
)Use
archive
to extract files from an archive to a specified location (usesunarchive
)Use
directory
to rsync a directory from the controller to target instances (usessynchronize
)
The example shows one entry for each of the above artifact types, but you can use these or any other parameters that the corresponding Ansible module accepts.
Copying files and directories to target instances is a common-enough need that this feature provides a convenient shortcut you can use instead of writing a custom hook.