DCD-224: Download locally rather than to the shared drive to avoid races.

This commit is contained in:
Steve Smith
2019-04-15 14:18:25 +10:00
parent 94c06ce4d5
commit 6c70ce323e
4 changed files with 14 additions and 3 deletions

View File

@@ -17,10 +17,15 @@
- name: Use version for product version
command: "cat {{ atl_product_version_cache }}"
register: atl_product_version_file
changed_when: False
# Note: We don't cache this in the shared drive to the complexity
# around download race-conditions if multiple nodes are starting at
# the same time. When downloading from product-downloads.atlassian.com
# (which is a CDN) takes seconds anyway.
- name: Fetch product installer
get_url:
url: "{{ atl_product_download_url }}"
dest: "{{ atl_product_download_cache }}"
dest: "{{ atl_product_download }}"
mode: 0755
force: false