summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application/tasks/transfer-helm-charts.yml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-01-22 13:04:42 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-01-26 08:33:48 +0000
commitbbfb07116c060a6c3be1f5efc64b0706d98b255e (patch)
tree70f4426a198b08c2ccbb8f468f76fba1afa86be3 /ansible/roles/application/tasks/transfer-helm-charts.yml
parent91b7f3ee06e0238829fc3208f677dee982aefd19 (diff)
Move Helm v2 plugin installation logic into separate playbook
Change-Id: Icc767450da832d8792b7bdf33f85e5ffc97ee435 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/application/tasks/transfer-helm-charts.yml')
-rw-r--r--ansible/roles/application/tasks/transfer-helm-charts.yml27
1 files changed, 2 insertions, 25 deletions
diff --git a/ansible/roles/application/tasks/transfer-helm-charts.yml b/ansible/roles/application/tasks/transfer-helm-charts.yml
index 56c95cc4..ac910735 100644
--- a/ansible/roles/application/tasks/transfer-helm-charts.yml
+++ b/ansible/roles/application/tasks/transfer-helm-charts.yml
@@ -20,28 +20,5 @@
src: "{{ app_helm_charts_install_directory }}.tgz"
dest: "{{ app_helm_charts_infra_directory }}"
-
-- name: Install helm plugins if needed
- block:
- - name: Get helm dir
- command: "{{ helm_bin_dir }}/helm home"
- register: helm_home_dir
- - name: Ensure that dir for helm plugins exists
- file:
- path: "{{ helm_home_dir.stdout }}/plugins"
- state: directory
- mode: 0755
- - name: Register all plugins to be inserted by dir names
- find:
- paths: "{{ app_helm_plugins_directory }}"
- file_type: "directory"
- register: list_of_plugins
- delegate_to: localhost
- - name: Install all helm plugins from {{ app_helm_plugins_directory }} dir
- copy:
- src: "{{ item.path }}"
- dest: "{{ helm_home_dir.stdout }}/plugins"
- directory_mode: true
- mode: 0755
- loop: "{{ list_of_plugins.files }}"
- when: app_helm_plugins_directory is defined and app_helm_plugins_directory is not none
+- include_tasks: install-helm2-plugins.yml
+ when: helm_version | regex_search("^v2" )