ITPLT-3960 remove downloading lock regardless of dl outocme

This commit is contained in:
bmeehan
2024-08-15 21:35:49 +10:00
parent 126389eb9e
commit 1afa4b3833

View File

@@ -56,11 +56,10 @@
state: directory state: directory
when: jdk_downloaded.changed when: jdk_downloaded.changed
- name: Remove jdk_downloading lock directory if we took out completed lock - name: Remove jdk_downloading lock directory on success or fail
ansible.builtin.file: ansible.builtin.file:
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_downloading" path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_downloading"
state: absent state: absent
when: jdk_downloaded.changed
when: when:
- jdk_downloading_lock - jdk_downloading_lock