containers.podman.podman_login – Login to a container registry using podman¶
Note
This plugin is part of the containers.podman collection (version 1.5.0).
To install it use: ansible-galaxy collection install containers.podman
.
To use it in a playbook, specify: containers.podman.podman_login
.
Synopsis¶
Login to a container registry server using the podman login command If the registry is not specified, the first registry under [registries.search] from registries.conf `will be used. The path of the authentication file can be overridden by the user by setting the `authfile flag. The default path used is ${XDG_RUNTIME_DIR}/containers/auth.json.
Requirements¶
The below requirements are needed on the host that executes this module.
Podman installed on host
Parameters¶
Examples¶
- name: Login to default registry and create ${XDG_RUNTIME_DIR}/containers/auth.json
containers.podman.podman_login:
username: user
password: 'p4ssw0rd'
- name: Login to default registry and create ${XDG_RUNTIME_DIR}/containers/auth.json
containers.podman.podman_login:
username: user
password: 'p4ssw0rd'
registry: quay.io
Authors¶
Jason Hiatt (@jthiatt)