summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-chartmuseum/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/test/roles/prepare-chartmuseum/tasks/main.yml')
-rw-r--r--ansible/test/roles/prepare-chartmuseum/tasks/main.yml22
1 files changed, 14 insertions, 8 deletions
diff --git a/ansible/test/roles/prepare-chartmuseum/tasks/main.yml b/ansible/test/roles/prepare-chartmuseum/tasks/main.yml
index b0bb5d11..a46888e8 100644
--- a/ansible/test/roles/prepare-chartmuseum/tasks/main.yml
+++ b/ansible/test/roles/prepare-chartmuseum/tasks/main.yml
@@ -1,12 +1,18 @@
---
-- name: "Ensure {{ app_data_path }}/downloads directory exists"
+- name: "Create chartmuseum image storage dir"
file:
- path: "{{ app_data_path }}/downloads"
- recurse: true
+ path: "{{ infra_images_path }}"
state: directory
+ mode: "u+rw,g+wx,o+rwx"
+ recurse: true
+
+- name: Download and archive chartmuseum docker image
+ delegate_to: localhost
+ docker_image:
+ name: "{{ chartmuseum_server_image }}"
+ archive_path: /tmp/chartmuseum.tar
-- name: "Download chartmuseum"
- get_url:
- url: "https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum"
- dest: "{{ app_data_path }}/downloads"
- remote_src: true
+- name: Copy chartmuseum image to node
+ copy:
+ src: /tmp/chartmuseum.tar
+ dest: "{{ infra_images_path }}/{{ chartmuseum_server_image_tar }}"