containers.podman.podman_login_info – Return the logged-in user if any for a given registry
Note
This plugin is part of the containers.podman collection (version 1.9.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install containers.podman
.
To use it in a playbook, specify: containers.podman.podman_login_info
.
New in version 1.0.0: of containers.podman
Requirements
The below requirements are needed on the host that executes this module.
Podman installed on host
Parameters
Parameter |
Comments |
---|---|
Path of the authentication file. Default is |
|
Path to Default: “podman” |
|
Registry server. |
Examples
- 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
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Logged in user for a registry Returned: always Sample: {“logged_in”: true, “registry”: “docker.io”, “username”: “clelange”} |
Authors
Clemens Lange (@clelange)