Skip to content
Snippets Groups Projects
Verified Commit 0b305fe1 authored by Varac's avatar Varac
Browse files

Improve tiller installation

parent 40860aee
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
package:
name: python3-pip
# Needed for ansible k8s resource
- name: Install openshift python module via pip3
pip:
name: openshift
......@@ -42,12 +43,13 @@
definition: "{{ lookup('file', 'k8s-config/tiller-permissions.yml') }}"
- name: Check if tiller is already instaled
shell: '/snap/bin/helm ls || /bin/true'
command: /snap/bin/helm ls
failed_when: false
register: helm_ls
changed_when: false
- name: Initialize helm
command: /snap/bin/helm init --upgrade --service-account=tiller
command: /snap/bin/helm init --service-account=tiller
when: helm_ls.stderr.find('Error') != -1
- name: Wait for tiller to become available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment