summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-override
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/application-override')
-rw-r--r--ansible/roles/application-override/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/application-override/tasks/main.yml b/ansible/roles/application-override/tasks/main.yml
new file mode 100644
index 00000000..84896fbc
--- /dev/null
+++ b/ansible/roles/application-override/tasks/main.yml
@@ -0,0 +1,16 @@
+---
+# Role for generating Helm override.yml file
+- name: Register root certificate
+ slurp:
+ src: "{{ playbook_dir }}/certs/rootCA.crt"
+ register: root_cert
+ delegate_to: localhost
+
+# WA: this is required because deploy plugin dont process params properly
+- name: Create override file with global.cacert
+ copy:
+ dest: "{{ app_helm_override_file }}"
+ content: |
+ global:
+ cacert: |
+ {{ root_cert['content'] | b64decode | indent( width=4, indentfirst=False) }}