mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
ITOPSENG-164 Yamllint fix
This commit is contained in:
@@ -126,15 +126,18 @@
|
||||
dest: "{{ atl_product_version_cache }}"
|
||||
force: true
|
||||
|
||||
# For the first run a temp binary should be downloaded but moved to shared home to ensure all subsequent nodes have access
|
||||
# For the first run a temp binary should be downloaded but moved to
|
||||
# shared home to ensure all subsequent nodes have access
|
||||
# to the same specific version binary.
|
||||
# To prevent a race condition with multiple downloads at the same time a directory is used as a lockfile (atomic operation).
|
||||
# To prevent a race condition with multiple downloads at the same time
|
||||
# a directory is used as a lockfile (atomic operation).
|
||||
|
||||
- name: Assume temp binary should be downloaded
|
||||
set_fact:
|
||||
download_binary: yes
|
||||
download_binary: true
|
||||
|
||||
# Check for product installer in home_shared and lockdir to determine if it needs to be downloaded again.
|
||||
# Check for product installer in home_shared and lockdir to determine
|
||||
# if it needs to be downloaded again.
|
||||
- name: Check download lock directory exists
|
||||
stat:
|
||||
path: "{{ atl_product_home_shared_download_lockdir }}"
|
||||
@@ -148,7 +151,7 @@
|
||||
# If binary exists and lockdir exists use this binary instead
|
||||
- name: Check Lock Directory and binary exists on shared_home
|
||||
set_fact:
|
||||
download_binary: no
|
||||
download_binary: false
|
||||
when:
|
||||
- home_shared_downloaded.stat.exists
|
||||
- download_lockdir.stat.isdir is defined
|
||||
@@ -177,7 +180,7 @@
|
||||
copy:
|
||||
src: "{{ atl_product_download }}"
|
||||
dest: "{{ atl_product_home_shared_download }}"
|
||||
remote_src: yes
|
||||
remote_src: true
|
||||
when: lockdir_removed is succeeded
|
||||
register: copied
|
||||
|
||||
|
||||
Reference in New Issue
Block a user