sshnaidm.podman.podman_volume_info (0.1.0) — module

Gather info about podman volumes

Authors: Sagi Shnaidman (@sshnaidm)

preview | supported by community

Install collection

Install with ansible-galaxy collection install sshnaidm.podman:==0.1.0


Add to requirements.yml

  collections:
    - name: sshnaidm.podman
      version: 0.1.0

Description

Gather info about podman volumes with podman inspect command.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about all present volumes
  podman_volume_info:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about specific volume
  podman_volume_info:
    name: specific_volume

Inputs

    
name:
    description:
    - Name of the volume
    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

Outputs

volumes:
  description: Facts from all or specified volumes
  returned: always
  sample:
  - driver: local
    labels: {}
    mountPoint: /home/ansible/.local/share/testvolume/_data
    name: testvolume
    options: {}
    scope: local
  type: list