community.kubernetes.helm_repository – Manage Helm repositories.
Note
This plugin is part of the community.kubernetes collection (version 1.2.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 community.kubernetes
.
To use it in a playbook, specify: community.kubernetes.helm_repository
.
New in version 0.11.0: of community.kubernetes
Requirements
The below requirements are needed on the host that executes this module.
Parameters
Parameter |
Comments |
---|---|
The path of a helm binary to use. |
|
Chart repository name. |
|
Chart repository password for repository with basic auth. Required if chart_repo_username is specified. |
|
Desired state of repository. Choices:
|
|
Chart repository url |
|
Chart repository username for repository with basic auth. Required if chart_repo_password is specified. |
Examples
- name: Add a repository
community.kubernetes.helm_repository:
name: stable
repo_url: https://kubernetes.github.io/ingress-nginx
- name: Add Red Hat Helm charts repository
community.kubernetes.helm_repository:
name: redhat-charts
repo_url: https://redhat-developer.github.com/redhat-helm-charts
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Full helm command built by this module, in case you want to re-run the command outside the module or debug a problem. Returned: always Sample: “/usr/local/bin/helm repo add bitnami https://charts.bitnami.com/bitnami” |
|
Error message returned by helm command Returned: on failure Sample: “Repository already have a repository named bitnami” |
|
Full helm command stderr, in case you want to display it or examine the event log Returned: always Sample: “” |
|
Full helm command stderr in list, in case you want to display it or examine the event log Returned: always Sample: [“”] |
|
Full helm command stdout, in case you want to display it or examine the event log Returned: always Sample: “\”bitnami\” has been added to your repositories” |
|
Full helm command stdout in list, in case you want to display it or examine the event log Returned: always Sample: [“\”bitnami\” has been added to your repositories”] |
Authors
Lucas Boisserie (@LucasBoisserie)