mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-164 Yamllint fix
This commit is contained in:
@@ -126,15 +126,18 @@
|
|||||||
dest: "{{ atl_product_version_cache }}"
|
dest: "{{ atl_product_version_cache }}"
|
||||||
force: true
|
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 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
|
- name: Assume temp binary should be downloaded
|
||||||
set_fact:
|
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
|
- name: Check download lock directory exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ atl_product_home_shared_download_lockdir }}"
|
path: "{{ atl_product_home_shared_download_lockdir }}"
|
||||||
@@ -148,7 +151,7 @@
|
|||||||
# If binary exists and lockdir exists use this binary instead
|
# If binary exists and lockdir exists use this binary instead
|
||||||
- name: Check Lock Directory and binary exists on shared_home
|
- name: Check Lock Directory and binary exists on shared_home
|
||||||
set_fact:
|
set_fact:
|
||||||
download_binary: no
|
download_binary: false
|
||||||
when:
|
when:
|
||||||
- home_shared_downloaded.stat.exists
|
- home_shared_downloaded.stat.exists
|
||||||
- download_lockdir.stat.isdir is defined
|
- download_lockdir.stat.isdir is defined
|
||||||
@@ -177,7 +180,7 @@
|
|||||||
copy:
|
copy:
|
||||||
src: "{{ atl_product_download }}"
|
src: "{{ atl_product_download }}"
|
||||||
dest: "{{ atl_product_home_shared_download }}"
|
dest: "{{ atl_product_home_shared_download }}"
|
||||||
remote_src: yes
|
remote_src: true
|
||||||
when: lockdir_removed is succeeded
|
when: lockdir_removed is succeeded
|
||||||
register: copied
|
register: copied
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user