mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-164 Debug some changes to logic
This commit is contained in:
@@ -169,25 +169,33 @@
|
|||||||
register: atl_product_completed
|
register: atl_product_completed
|
||||||
when: download_binary
|
when: download_binary
|
||||||
|
|
||||||
# If product installer was fetched
|
# If product installer was fetched make the moving directory
|
||||||
# Make the moving directory
|
|
||||||
# - failure, continue and install from temp
|
|
||||||
# - success, move binary and install from shared_home
|
|
||||||
|
|
||||||
- name: Create moving_lock.
|
- name: Create moving_lock.
|
||||||
file:
|
file:
|
||||||
path: "{{ atl_product_home_shared_moving_lock }}"
|
path: "{{ atl_product_home_shared_moving_lock }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: download_binary is succeeded
|
when:
|
||||||
|
- atl_product_completed is succeeded
|
||||||
register: moving_lock_created
|
register: moving_lock_created
|
||||||
|
|
||||||
- name: Debug Scenario A - lock created
|
# Directory lock was created by this run
|
||||||
debug: lock created
|
# - Move binary
|
||||||
when: moving_lock_created is succeeded
|
- name: Move binary Scenario - lock created by this run
|
||||||
|
debug:
|
||||||
|
msg: lock created
|
||||||
|
set_fact:
|
||||||
|
move_binary: true
|
||||||
|
when:
|
||||||
|
- moving_lock_created is succeeded
|
||||||
|
- moving_lock_created.changed == True
|
||||||
|
|
||||||
- name: Debug Scenario B - lock cannot created
|
# Directory lock was either already created or could not be
|
||||||
debug: lock not created
|
# - Continue and install from temp
|
||||||
when: moving_lock_created is failed
|
- name: Continue Scenario - lock cannot be created or created by previous run
|
||||||
|
debug:
|
||||||
|
msg: lock not created
|
||||||
|
when: moving_lock_created is not succeeded or
|
||||||
|
( moving_lock_created is succeeded and moving_lock_created.changed == False )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user