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.4.4-dev).
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¶
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 | Returned | Description |
---|---|---|
login
dictionary
|
always |
Logged in user for a registry
Sample:
{'logged_in': True, 'registry': 'docker.io', 'username': 'clelange'}
|
Authors¶
Clemens Lange (@clelange)