Improve application role testability
[oom/offline-installer.git] / ansible / roles / application-override / tasks / main.yml
1 ---
2 # Role for generating Helm override.yml file
3 - name: Register root certificate
4   slurp:
5     src: "{{ playbook_dir }}/certs/rootCA.crt"
6   register: root_cert
7   delegate_to: localhost
8
9 # WA: this is required because deploy plugin dont process params properly
10 - name: Create override file with global.cacert
11   copy:
12     dest: "{{ app_helm_override_file }}"
13     content: |
14       global:
15         cacert: |
16           {{ root_cert['content'] | b64decode | indent( width=4, indentfirst=False) }}