ITOPSENG-164 Further testing required for logic change

This commit is contained in:
Glenn Stewart
2019-10-11 14:54:59 +11:00
parent b73381e907
commit 5d10948feb

View File

@@ -220,43 +220,43 @@
- ( 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 )
- 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 }}"
state: directory state: directory
when: move_binary when: move_binary
register: moving_lock_created register: moving_lock_created
- name: Copy temp installer to home_shared - name: Copy temp installer to home_shared
copy: copy:
src: "{{ atl_product_temp_download }}" src: "{{ atl_product_temp_download }}"
dest: "{{ atl_product_home_shared_download }}" dest: "{{ atl_product_home_shared_download }}"
remote_src: true remote_src: true
when: moving_lock_created is succeeded when: moving_lock_created is succeeded
register: copied register: copied
- name: Create downloaded_lock once product installer downloaded and copied - name: Create downloaded_lock once product installer downloaded and copied
file: file:
path: "{{ atl_product_home_shared_downloaded_lock }}" path: "{{ atl_product_home_shared_downloaded_lock }}"
state: directory state: directory
when: copied is succeeded when: copied is succeeded
register: downloaded_lock_created register: downloaded_lock_created
- name: Remove moving_lock to show that binary is completed - name: Remove moving_lock to show that binary is completed
file: file:
path: "{{ atl_product_home_shared_moving_lock }}" path: "{{ atl_product_home_shared_moving_lock }}"
state: absent state: absent
when: when:
- downloaded_lock_created is succeeded - downloaded_lock_created is succeeded
- copied is succeeded - copied is succeeded
register: moving_lock_removed register: moving_lock_removed
- name: Delete old temp installer - name: Delete old temp installer
file: file:
path: "{{ atl_product_temp_download }}" path: "{{ atl_product_temp_download }}"
state: absent state: absent
when: moving_lock_removed is succeeded when: moving_lock_removed is succeeded
register: temp_deleted register: temp_deleted
when: move_binary when: move_binary