kubernetes.core.helm_registry_auth module – Helm registry authentication module
Note
This module is part of the kubernetes.core collection (version 5.4.1).
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 kubernetes.core.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: kubernetes.core.helm_registry_auth.
New in kubernetes.core 5.1.0
Synopsis
- Helm registry authentication module allows you to login - helm registry loginand logout- helm registry logoutfrom a Helm registry.
Requirements
The below requirements are needed on the host that executes this module.
- helm (https://github.com/helm/helm/releases) => 3.8.0 
Parameters
| Parameter | Comments | 
|---|---|
| The path of a helm binary to use. | |
| Path to the CA certificate SSL file for verify registry server certificate. | |
| Path to the client certificate SSL file for identify registry client using this certificate file. | |
| Provide a URL for accessing the registry. | |
| Allow connections to SSL sites without certs. Choices: 
 | |
| Path to the client key SSL file for identify registry client using this key file. | |
| Password for the registry. | |
| Desired state of the registry. If set to  If set to  As helm >= 3.18.0 reports successful logout even if the user is not logged in, this module will report a change regardless of the current state. Choices: 
 | |
| Username for the registry. | 
Examples
- name: Login to remote registry
  kubernetes.core.helm_registry_auth:
    username: admin
    password: "sample_password"
    host: localhost:5000
- name: Logout from remote registry
  kubernetes.core.helm_registry_auth:
    state: absent
    host: localhost:5000
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| Full  Returned: always Sample:  | |
| Indicate if the  Returned: always Sample:  | |
| Full  Returned: always Sample:  | |
| Full  Returned: always | |
| Full  Returned: always | |
| Full  Returned: always | 
