summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndřej Šmalec <o.smalec@partner.samsung.com>2019-12-04 15:36:31 +0100
committerOndřej Šmalec <o.smalec@partner.samsung.com>2019-12-09 09:55:29 +0000
commit44ff43d2a9a9e3db453480dff5103bc94cbcdea5 (patch)
treef75bdfd8e6c56e63fae620b96126e1d38daedafc
parent65e78e87d6cbf2485533d0e01d21f505f84f5f56 (diff)
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 <o.smalec@partner.samsung.com> Change-Id: I5527bd0f52976a93ac2861d9de010fbb79eb97fd (cherry picked from commit d8c6d9acfd8b74dc3f3187d069b393405e5c1b18)
-rw-r--r--ansible/roles/application/tasks/transfer-helm-charts.yml9
1 files changed, 6 insertions, 3 deletions
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: