From d8c6d9acfd8b74dc3f3187d069b393405e5c1b18 Mon Sep 17 00:00:00 2001 From: Ondřej Šmalec Date: Wed, 4 Dec 2019 15:36:31 +0100 Subject: Archive helm_charts with command module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ansible/roles/application/tasks/transfer-helm-charts.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ansible/roles/application/tasks') 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: -- cgit 1.2.3-korg