summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-02 12:27:07 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-02 12:27:07 +0200
commitb8ef4b25fde106acd20e92a913f2b2f785ccd9de (patch)
tree6b65bc9d39e0225ba7a357e57ec536cd7afb9407 /ansible
parent82c4ad4dda63f917a6257eb626c805e46e7e4c16 (diff)
[MOLECULE] Add prepare-kube-prometheus-stack role
Change-Id: I03d96d7ee3a36883deb9939c2dcfec9d8bdf6db3 Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/test/roles/prepare-kube-prometheus-stack/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/test/roles/prepare-kube-prometheus-stack/tasks/main.yml b/ansible/test/roles/prepare-kube-prometheus-stack/tasks/main.yml
new file mode 100644
index 00000000..3d472c2e
--- /dev/null
+++ b/ansible/test/roles/prepare-kube-prometheus-stack/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- name: "Ensure {{ app_data_path }}/downloads directory exists"
+ file:
+ path: "{{ app_data_path }}/downloads"
+ recurse: true
+ state: directory
+
+- name: "Download kube-prometheus-stack-{{ kube_prometheus_stack_version }}.tgz"
+ get_url:
+ url: "https://github.com/prometheus-community/helm-charts/releases/download/kube-prometheus-stack-{{ kube_prometheus_stack_version }}/kube-prometheus-stack-{{ kube_prometheus_stack_version }}.tgz"
+ dest: "{{ app_data_path }}/downloads"