mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
ITOPSENG-164 Debug some changes to logic
This commit is contained in:
@@ -196,6 +196,48 @@
|
|||||||
( moving_lock_created is succeeded and moving_lock_created.changed == False )
|
( moving_lock_created is succeeded and moving_lock_created.changed == False )
|
||||||
|
|
||||||
|
|
||||||
|
# Move binary block
|
||||||
|
- name: Move product installer to home_shared
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: Copy temp installer to home_shared
|
||||||
|
copy:
|
||||||
|
src: "{{ atl_product_temp_download }}"
|
||||||
|
dest: "{{ atl_product_home_shared_download }}"
|
||||||
|
remote_src: true
|
||||||
|
when:
|
||||||
|
- moving_lock_created is succeeded
|
||||||
|
- moving_lock_created.changed == True
|
||||||
|
register: copied
|
||||||
|
|
||||||
|
- name: Create completed_lock once product installer downloaded and copied
|
||||||
|
file:
|
||||||
|
path: "{{ atl_product_home_shared_completed_lock }}"
|
||||||
|
state: directory
|
||||||
|
when: copied is succeeded
|
||||||
|
register: completed_lock_created
|
||||||
|
|
||||||
|
- name: Remove moving_lock to show that binary is completed
|
||||||
|
file:
|
||||||
|
path: "{{ atl_product_home_shared_moving_lock }}"
|
||||||
|
state: absent
|
||||||
|
when:
|
||||||
|
- completed_lock_created is succeeded
|
||||||
|
- copied is succeeded
|
||||||
|
register: moving_lock_removed
|
||||||
|
|
||||||
|
- name: Delete old temp installer
|
||||||
|
file:
|
||||||
|
path: "{{ atl_product_temp_download }}"
|
||||||
|
state: absent
|
||||||
|
when: moving_lock_removed is succeeded
|
||||||
|
register: temp_deleted
|
||||||
|
|
||||||
|
when: move_binary
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -255,38 +297,6 @@
|
|||||||
# when: move_binary
|
# when: move_binary
|
||||||
# register: moving_lock_created
|
# register: moving_lock_created
|
||||||
|
|
||||||
# - name: Copy temp installer to home_shared
|
|
||||||
# copy:
|
|
||||||
# src: "{{ atl_product_temp_download }}"
|
|
||||||
# dest: "{{ atl_product_home_shared_download }}"
|
|
||||||
# remote_src: true
|
|
||||||
# when: moving_lock_created is succeeded
|
|
||||||
# register: copied
|
|
||||||
|
|
||||||
# - name: Create completed_lock once product installer downloaded and copied
|
|
||||||
# file:
|
|
||||||
# path: "{{ atl_product_home_shared_completed_lock }}"
|
|
||||||
# state: directory
|
|
||||||
# when: copied is succeeded
|
|
||||||
# register: completed_lock_created
|
|
||||||
|
|
||||||
# - name: Remove moving_lock to show that binary is completed
|
|
||||||
# file:
|
|
||||||
# path: "{{ atl_product_home_shared_moving_lock }}"
|
|
||||||
# state: absent
|
|
||||||
# when:
|
|
||||||
# - completed_lock_created is succeeded
|
|
||||||
# - copied is succeeded
|
|
||||||
# register: moving_lock_removed
|
|
||||||
|
|
||||||
# - name: Delete old temp installer
|
|
||||||
# file:
|
|
||||||
# path: "{{ atl_product_temp_download }}"
|
|
||||||
# state: absent
|
|
||||||
# when: moving_lock_removed is succeeded
|
|
||||||
# register: temp_deleted
|
|
||||||
|
|
||||||
# when: move_binary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user