-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelm.yml
32 lines (30 loc) · 980 Bytes
/
helm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- name: Setup Helm
hosts: controllers[0]
vars:
repositories:
- name: stable
url: https://charts.helm.sh/stable
- name: cloudve
url: https://raw.githubusercontent.com/CloudVE/helm-charts/master/
tasks:
- name: Install Helm
ansible.builtin.shell:
executable: /bin/bash
cmd: "set -o pipefail && curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s"
creates: /usr/local/bin/helm
become: true
- name: Remove existing stable Helm repo
kubernetes.core.helm_repository:
name: stable
state: absent
- name: Install Helm repositoryies
kubernetes.core.helm_repository:
name: "{{ item.name }}"
state: present
repo_url: "{{ item.url }}"
loop:
- name: stable
url: https://charts.helm.sh/stable
- name: cloudve
url: https://raw.githubusercontent.com/CloudVE/helm-charts/master/