Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.helm.
version 3.0.0
For more details https://github.com/ansible/ansible/issues/61546.
Use community.kubernetes.helm instead.
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| chart dictionary | Default: {} | A map describing the chart to install. See examples for available options. |
| disable_hooks boolean |
| Whether to disable hooks during the uninstall process. |
| host string | Default: "localhost" | Tiller's server host. |
| name string | Release name to manage. | |
| namespace string | Default: "default" | Kubernetes namespace where the chart should be installed. |
| port integer | Default: 44134 | Tiller's server port. |
| state string |
| Whether to install present, remove absent, or purge purged a package. |
| values dictionary | Default: {} | A map of value options for the chart. |
- name: Install helm chart
community.general.helm:
host: localhost
chart:
name: memcached
version: 0.4.0
source:
type: repo
location: https://kubernetes-charts.storage.googleapis.com
state: present
name: my-memcached
namespace: default
- name: Uninstall helm chart
community.general.helm:
host: localhost
state: absent
name: my-memcached
- name: Install helm chart from a git repo
community.general.helm:
host: localhost
chart:
source:
type: git
location: https://github.com/user/helm-chart.git
state: present
name: my-example
namespace: default
values:
foo: "bar"
- name: Install helm chart from a git repo specifying path
community.general.helm:
host: localhost
chart:
source:
type: git
location: https://github.com/helm/charts.git
path: stable/memcached
state: present
name: my-memcached
namespace: default
values: "{{ lookup('file', '/path/to/file/values.yaml') | from_yaml }}"
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/helm_module.html