Uploading artifacts v23
You can define
artifacts to create or copy files to target instances:
The following types are supported:
pathto create or remove and change the ownership or mode of files and directories. (This type takes the same parameters as Ansible's
filemodule, which it uses internally.)
fileto copy a file from the controller and set the ownership and mode (uses
archiveto extract files from an archive to a specified location (uses
directoryto rsync a directory from the controller to target instances (uses
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.