containers / containers.podman / 1.12.1 / module / podman_login_info Return the logged-in user if any for a given registry | "added in version" 1.0.0 of containers.podman" Authors: Clemens Lange (@clelange)containers.podman.podman_login_info (1.12.1) — module
Install with ansible-galaxy collection install containers.podman:==1.12.1
collections: - name: containers.podman version: 1.12.1
Return the logged-in user if any for a given registry.
- name: Return the logged-in user for docker hub registry containers.podman.podman_login_info: registry: docker.io
- name: Return the logged-in user for quay.io registry containers.podman.podman_login_info: registry: quay.io
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
login: description: Logged in user for a registry returned: always sample: logged_in: true registry: docker.io username: clelange type: dict