containers.podman.podman_save (1.12.1) — module

Saves podman image to tar file

Authors: Sagi Shnaidman (@sshnaidm)

Install collection

Install with ansible-galaxy collection install containers.podman:==1.12.1


Add to requirements.yml

  collections:
    - name: containers.podman
      version: 1.12.1

Description

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.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# What modules does for example
- containers.podman.podman_save:
    image: nginx
    dest: /tmp/file123.tar
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- containers.podman.podman_save:
    image:
      - nginx
      - fedora
    dest: /tmp/file456.tar
    multi_image_archive: true

Inputs

    
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