Michal Ptacek | 11e2af5 | 2018-12-19 19:42:03 +0000 | [diff] [blame^] | 1 | --- |
| 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 }}" |