summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application/tasks
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-01-29 11:45:55 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-02-04 08:15:51 +0000
commitc6ac1c3b4ba655b950dde7457be706b744d707d6 (patch)
tree2aa129a88694ee36bce5bf57ef807126d84f40f9 /ansible/roles/application/tasks
parent14e400e35052b953e217145ae7d20151bcb05f04 (diff)
Fix Helm v3 data dir setup
Verifier test is also added to ensure correct plugin deployment. Change-Id: I2e43d942f39fc7ecfe34c22d84ba0f59978ec225 Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/application/tasks')
-rw-r--r--ansible/roles/application/tasks/install-helm3-plugins.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/ansible/roles/application/tasks/install-helm3-plugins.yml b/ansible/roles/application/tasks/install-helm3-plugins.yml
index da402f31..5d933ed2 100644
--- a/ansible/roles/application/tasks/install-helm3-plugins.yml
+++ b/ansible/roles/application/tasks/install-helm3-plugins.yml
@@ -6,12 +6,12 @@
register: helm_env
- name: Set helm data dir
set_fact:
- helm_data_dir: |
- "{% if 'HELM_DATA_HOME' in helm_env.stdout %}
+ helm_data_dir:
+ "{% if 'HELM_DATA_HOME' in helm_env.stdout -%}
{{ (helm_env.stdout | replace('\"', '') | regex_search('HELM_DATA_HOME.*')).split('=')[1] }}
- {% else %}
+ {%- else -%}
{{ '~/.local/share/helm' }}
- {% endif %}"
+ {%- endif %}"
- name: Ensure that dir for helm plugins exists
file:
path: "{{ helm_data_dir }}/plugins"