containers.podman.podman_secret_info (1.12.1) — module

Gather info about podman secrets

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 secrets with podman inspect command.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about all present secrets
  podman_secret_info:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about specific secret
  podman_secret_info:
    name: specific_secret

Inputs

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

showsecret:
    default: false
    description:
    - Show secret data value
    type: bool

Outputs

secrets:
  description: Facts from all or specified secrets
  returned: always
  sample:
  - CreatedAt: '2024-01-28T20:32:08.31857841+02:00'
    ID: 06068c676e9a7f1c7dc0da8dd
    Spec:
      Driver:
        Name: file
        Options:
          path: /home/user/.local/share/containers/storage/secrets/filedriver
      Labels: {}
      Name: secret_name
    UpdatedAt: '2024-01-28T20:32:08.31857841+02:00'
  type: list