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. (This type 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 these artifact types. You can use these or any other parameters that the corresponding Ansible module accepts.
Copying files and directories to target instances is a common need. Defining artifacts can be a convenient shortcut to writing a custom hook.