diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-09-20 06:46:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-20 06:46:36 +0000 |
commit | ef1aef15d17eae648f9eaf720c85d9c1f3f5e97e (patch) | |
tree | f04947b7c1e9986f5fdd84b5448b4766221ccf46 | |
parent | 37baf499bd05b499b1fb8194266fe93dcfbd0b51 (diff) | |
parent | 570db0a6ad8dc821d2e08246dfa1509b412d4c8d (diff) |
Merge "Replace jinja for with filter expression in helm deploy call"
-rw-r--r-- | ansible/roles/application/tasks/install.yml | 4 |
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 |