unpack
!unpack
Category: files
Extract an archive (tar.gz/tgz/tar.bz2/tar.xz/tar/zip, or single-file gz/bz2/xz) on the target into a destination directory. Source archive must exist on the target.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
src | path | yes | Remote path to the archive (format inferred from extension). |
dest | path | yes | Remote destination directory (created if missing). |
mode | string | no | Octal permission string applied recursively via chmod -R after extraction. |
owner | string | no | Owner applied recursively via chown -R after extraction. |
group | string | no | Group applied recursively via chown -R after extraction. |
Examples
- !unpack
src: /opt/app/app.tar.gz
dest: /opt/app
owner: app
group: app