mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-164 Further testing required for logic change
This commit is contained in:
@@ -189,10 +189,12 @@
|
|||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
# Product is installed. If the following are true, move to home_shared
|
# Temp product was downloaded and installed.
|
||||||
|
# If the following conditions are true, move to home_shared
|
||||||
# 1. This node just downloaded binary.
|
# 1. This node just downloaded binary.
|
||||||
# 2. Another node is not already moving into place.
|
# 2. Another node is not already moving into place.
|
||||||
- name: "Move product installer"
|
# 3. The binary is downloaded and lockdir in place.
|
||||||
|
- name: "Check move product installer"
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Check again for moving lock directory
|
- name: Check again for moving lock directory
|
||||||
@@ -214,12 +216,16 @@
|
|||||||
- name: Check lock directory and binary exists on shared_home
|
- name: Check lock directory and binary exists on shared_home
|
||||||
set_fact:
|
set_fact:
|
||||||
move_binary: true
|
move_binary: true
|
||||||
atl_product_download: "{{ atl_product_home_shared_download }}"
|
|
||||||
when:
|
when:
|
||||||
- home_shared_download.stat.exists == False
|
- ( home_shared_download.stat.exists == False or
|
||||||
- ( downloaded_lock.stat.isdir is not defined or downloaded_lock.stat.isdir == False )
|
downloaded_lock.stat.isdir is not defined or downloaded_lock.stat.isdir == False )
|
||||||
- ( moving_lock.stat.isdir is not defined or moving_lock.stat.isdir == False )
|
- ( moving_lock.stat.isdir is not defined or moving_lock.stat.isdir == False )
|
||||||
|
|
||||||
|
when: download_binary
|
||||||
|
|
||||||
|
- name: "Move product installer if required"
|
||||||
|
block:
|
||||||
|
|
||||||
- name: Create moving_lock to ensure other nodes skip
|
- name: Create moving_lock to ensure other nodes skip
|
||||||
file:
|
file:
|
||||||
path: "{{ atl_product_home_shared_moving_lock }}"
|
path: "{{ atl_product_home_shared_moving_lock }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user