summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application-override/tasks/main.yml
blob: 84896fbc3f9a97209b8cefbac7f0874ee84037ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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) }}