summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-06-04 16:27:40 +0200
committerMichal Zegan <m.zegan@samsung.com>2019-07-12 13:13:44 +0200
commit570db0a6ad8dc821d2e08246dfa1509b412d4c8d (patch)
treefa54c405790974f65eec6c0a8234076d25839d53 /ansible
parent0573ab24eb85e428cb1f1bb80b9956b1a790dcc6 (diff)
Replace jinja for with filter expression in helm deploy call
This replaces jinja for constructions used to add helm arguments with jinja filter usage. Change-Id: Ia47635466f4a9251d1f33a42080d3538fc52587d Issue-ID: OOM-1911 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/application/tasks/install.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/application/tasks/install.yml b/ansible/roles/application/tasks/install.yml
index 2ac2fd6b..bee01e17 100644
--- a/ansible/roles/application/tasks/install.yml
+++ b/ansible/roles/application/tasks/install.yml
@@ -81,8 +81,8 @@
{{ app_helm_release_name }}
{{ helm_repository_name }}/{{ app_helm_chart_name }}
--namespace {{ app_kubernetes_namespace }}
- {% for arg in helm_override_files %} {{ '-f ' + arg }} {% endfor %}
- {% for arg in helm_extra_install_options %} {{ arg.opt }} {% endfor %}
+ {{ helm_override_files | map('regex_replace', '^', '-f ') | join(' ') }}
+ {{ helm_extra_install_options | map(attribute='opt') | join(' ') }}
changed_when: true # when executed its a changed type of action
register: helm_install
failed_when: helm_install.stderr