summaryrefslogtreecommitdiffstats
path: root/ansible/roles/application
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-06 11:44:21 +0000
commitd8c6d9acfd8b74dc3f3187d069b393405e5c1b18 (patch)
tree853c5600fe37ab961275e343949d126c376caf51 /ansible/roles/application
parent610ddff2d54cece28af56cc7bbf01ed524ecce9c (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
Diffstat (limited to 'ansible/roles/application')
-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: