containers / containers.podman / 1.12.1 / module / podman_import Import Podman container from a tar file. Authors: Sagi Shnaidman (@sshnaidm)containers.podman.podman_import (1.12.1) — module
Install with ansible-galaxy collection install containers.podman:==1.12.1
collections: - name: containers.podman version: 1.12.1
podman import imports a tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) and saves it as a filesystem image.
# What modules does for example - containers.podman.podman_import: src: /path/to/tar/file change: - "CMD": /bin/bash - "User": root commit_message: "Importing image"
- containers.podman.podman_import: src: /path/to/tar/file volume: myvolume
src: description: - Path to image file to load. required: true type: str change: description: - Set changes as list of key-value pairs, see example. elements: dict type: list volume: description: - Volume to import, cannot be used with change and commit_message 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 commit_message: description: - Set commit message for imported image type: str
image: description: info from loaded image returned: always sample: Annotations: {} Architecture: amd64 Author: '' Comment: imported from tarball Config: {} Created: '2021-09-07T04:45:38.749977105+03:00' Digest: sha256:8730c75be86a718929a658db4663d487e562d66762.... GraphDriver: Data: UpperDir: /home/...34/diff WorkDir: /home/.../work Name: overlay History: - comment: imported from tarball created: '2021-09-07T04:45:38.749977105+03:00' created_by: '/bin/sh -c #(nop) ADD file:091... in /' Id: cbc6d73c4d232db6e8441df96af81855f62c74157b5db80a1d5... Labels: null ManifestType: application/vnd.oci.image.manifest.v1+json NamesHistory: null Os: linux Parent: '' RepoDigests: [] RepoTags: [] RootFS: Layers: - sha256:.... Type: layers Size: 5882449 User: '' Version: '' VirtualSize: 5882449 type: dict