containers.podman.podman_export (1.12.1) — module

Export a podman container

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 export exports the filesystem of a container and saves it as a tarball on the local machine


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# What modules does for example
- containers.podman.podman_export:
    dest: /path/to/tar/file
    container: container-name
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- containers.podman.podman_export:
    dest: /path/to/tar/file
    volume: volume-name

Inputs

    
dest:
    description:
    - Path to export container to.
    required: true
    type: str

force:
    default: true
    description:
    - Force saving to file even if it exists.
    type: bool

volume:
    description:
    - Volume to export.
    type: str

container:
    description:
    - Container to export.
    type: str

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