[ANSIBLE] Fix 'application' role idempotency checks
[oom/offline-installer.git] / ansible / roles / application / tasks / transfer-helm-charts.yml
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       command: tar -cvzf {{ app_helm_charts_install_directory }}.tgz -C {{ app_helm_charts_install_directory }} .
7       args:
8         warn: false
9       tags:
10         - skip_ansible_lint  # Prevent '[303] tar used in place of unarchive module'
11       delegate_to: localhost
12     - name: Create helm charts dir on infra
13       file:
14         path: "{{ app_helm_charts_infra_directory }}"
15         state: directory
16         mode: 0755
17     - name: Unarchive helm charts on infra node
18       unarchive:
19         src: "{{ app_helm_charts_install_directory }}.tgz"
20         dest: "{{ app_helm_charts_infra_directory }}"
21   tags: molecule-idempotence-notest
22
23 - include_tasks: install-helm-plugins.yml