containers.podman.podman_login_info (1.12.1) — module

Return the logged-in user if any for a given registry

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

Authors: Clemens Lange (@clelange)

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

Return the logged-in user if any for a given registry.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Return the logged-in user for docker hub registry
  containers.podman.podman_login_info:
    registry: docker.io
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Return the logged-in user for quay.io registry
  containers.podman.podman_login_info:
    registry: quay.io

Inputs

    
authfile:
    description:
    - Path of the authentication file. Default is ``${XDG_RUNTIME_DIR}/containers/auth.json``
      (Not available for remote commands) You can also override the default path of the
      authentication file by setting the ``REGISTRY_AUTH_FILE`` environment variable.
      ``export REGISTRY_AUTH_FILE=path``
    type: path

registry:
    description:
    - Registry server.
    required: true
    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

login:
  description: Logged in user for a registry
  returned: always
  sample:
    logged_in: true
    registry: docker.io
    username: clelange
  type: dict