diff options
-rw-r--r-- | ansible/roles/application-override/tasks/main.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ansible/roles/application-override/tasks/main.yml b/ansible/roles/application-override/tasks/main.yml index 84896fbc..1ecf7c79 100644 --- a/ansible/roles/application-override/tasks/main.yml +++ b/ansible/roles/application-override/tasks/main.yml @@ -6,11 +6,11 @@ register: root_cert delegate_to: localhost -# WA: this is required because deploy plugin dont process params properly -- name: Create override file with global.cacert +- name: "Set root ca certificate" + set_fact: + merged_overrides: "{{ overrides | default({}) | combine({'global': {'cacert': root_cert.content | b64decode}}, recursive=True) }}" + +- name: "Create {{ app_helm_override_file }}" copy: dest: "{{ app_helm_override_file }}" - content: | - global: - cacert: | - {{ root_cert['content'] | b64decode | indent( width=4, indentfirst=False) }} + content: "{{ merged_overrides | to_nice_yaml }}" |