containers.podman.podman_pod_info (1.12.1) — module

Gather info about podman pods

| "added in version" 1.0.0 of containers.podman"

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

Gather info about podman pods with podman inspect command.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about all present pods
  containers.podman.podman_pod_info:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about specific pods
  containers.podman.podman_pod_info:
    name: special_pod

Inputs

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

pods:
  description: Facts from all or specified pods
  returned: always
  sample:
  - Config:
      cgroupParent: /libpod_parent
      created: '2020-07-13T20:29:12.572282186+03:00'
      hostname: pod1host
      id: d9cb6dbb0....
      infraConfig:
        infraPortBindings:
        - containerPort: 7111
          hostIP: ''
          hostPort: 7777
          protocol: tcp
        makeInfraContainer: true
      labels: {}
      lockID: 682
      name: pod1
      sharesCgroup: true
      sharesIpc: true
      sharesNet: true
      sharesUts: true
    Containers:
    - id: ad46737bf....
      state: configured
    State:
      cgroupPath: /libpod_parent/d9cb6dbb0....
      infraContainerID: ad46737bf....
      status: Created
  type: list