containers / containers.podman / 1.12.1 / module / podman_save Saves podman image to tar file Authors: Sagi Shnaidman (@sshnaidm)containers.podman.podman_save (1.12.1) — module
Install with ansible-galaxy collection install containers.podman:==1.12.1
collections: - name: containers.podman version: 1.12.1
podman save saves an image to either docker-archive, oci-archive, oci-dir (directory with oci manifest type), or docker-dir (directory with v2s2 manifest type) on the local machine, default is docker-archive.
# What modules does for example - containers.podman.podman_save: image: nginx dest: /tmp/file123.tar
- containers.podman.podman_save: image: - nginx - fedora dest: /tmp/file456.tar multi_image_archive: true
dest: aliases: - path description: - Destination file to write image to. required: true type: str force: default: true description: - Force saving to file even if it exists. type: bool image: description: - Image to save. elements: str required: true type: list format: choices: - docker-archive - oci-archive - oci-dir - docker-dir description: - Save image to docker-archive, oci-archive (see containers-transports(5)), oci-dir (oci transport), or docker-dir (dir transport with v2s2 manifest type). type: str compress: description: - Compress tarball image layers when pushing to a directory using the 'dir' transport. (default is same compression type, compressed or uncompressed, as source) type: bool executable: default: podman description: - Path to C(podman) executable if it is not in the C($PATH) on the machine running C(podman) type: str multi_image_archive: description: - Allow for creating archives with more than one image. Additional names will be interpreted as images instead of tags. Only supported for docker-archive. type: bool