From: Ondřej Šmalec Date: Wed, 4 Dec 2019 14:36:31 +0000 (+0100) Subject: Archive helm_charts with command module X-Git-Tag: 6.0.0-ONAP~62 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d8c6d9acfd8b74dc3f3187d069b393405e5c1b18;p=oom%2Foffline-installer.git Archive helm_charts with command module Due to bug in ansible archive module empty files are not added into tar file. Hence kibana-onborading.json missing in helm_charts on infra node. Changing archive module into command module to tar helm_charts. Issue-ID: OOM-2231 Signed-off-by: Ondřej Šmalec Change-Id: I5527bd0f52976a93ac2861d9de010fbb79eb97fd --- diff --git a/ansible/roles/application/tasks/transfer-helm-charts.yml b/ansible/roles/application/tasks/transfer-helm-charts.yml index 5e4240b6..56c95cc4 100644 --- a/ansible/roles/application/tasks/transfer-helm-charts.yml +++ b/ansible/roles/application/tasks/transfer-helm-charts.yml @@ -3,9 +3,12 @@ - name: Distribute helm charts to infra node block: - name: Archive helm charts - archive: - path: "{{ app_helm_charts_install_directory }}/*" - dest: "{{ app_helm_charts_install_directory }}.tgz" + command: tar -cvzf {{ app_helm_charts_install_directory }}.tgz -C {{ app_helm_charts_install_directory }} . + args: + warn: false + tags: + - skip_ansible_lint # Prevent '[303] tar used in place of unarchive module' + changed_when: false # for idempotency delegate_to: localhost - name: Create helm charts dir on infra file: