blob: b782ca76f683d97d3a6eedc3892b2320c79d6622 [file] [log] [blame]
Michal Ptacek11e2af52018-12-19 19:42:03 +00001---
2# before custom specific code is executed we need to move helm charts to infra
3- name: Distribute helm charts to infra node
4 block:
5 - name: Archive helm charts
6 archive:
7 path: "{{ app_helm_charts_install_directory }}/*"
8 dest: "{{ app_helm_charts_install_directory }}.tgz"
9 delegate_to: localhost
10 - name: Create helm charts dir on infra
11 file:
12 path: "{{ app_helm_charts_infra_directory }}"
13 state: directory
14 mode: 0755
15 - name: Unarchive helm charts on infra node
16 unarchive:
17 src: "{{ app_helm_charts_install_directory }}.tgz"
18 dest: "{{ app_helm_charts_infra_directory }}"
19
20- name: "Execute custome role {{ application_pre_install_role }} if defined."
21 include_tasks: custom_role.yml
22 vars:
23 application_custom_role: "{{ application_pre_install_role }}"