mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
ITPLT-3960 make indent rightish and unwrong
This commit is contained in:
@@ -37,30 +37,31 @@
|
|||||||
- not jdk_download_completed_lock.stat.exists
|
- not jdk_download_completed_lock.stat.exists
|
||||||
|
|
||||||
# handle the jdk download on only 1 node
|
# handle the jdk download on only 1 node
|
||||||
- block:
|
- name: Doenload Eclipse Temurin JDK if necessary on a node whilst locking the downloading action
|
||||||
|
block:
|
||||||
|
|
||||||
- name: Try 5 times to download Eclipse Temurin JDK with dnf
|
- name: Try 5 times to download Eclipse Temurin JDK with dnf
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "temurin-{{ java_major_version }}-jdk"
|
name: "temurin-{{ java_major_version }}-jdk"
|
||||||
state: present
|
state: present
|
||||||
download_dir: "{{ atl_product_home_shared_download_dir }}"
|
download_dir: "{{ atl_product_home_shared_download_dir }}"
|
||||||
download_only: true
|
download_only: true
|
||||||
update_cache: true
|
update_cache: true
|
||||||
register: jdk_downloaded
|
register: jdk_downloaded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
until: jdk_downloaded is succeeded
|
until: jdk_downloaded is succeeded
|
||||||
|
|
||||||
- name: Create jdk_download_completed lock directory if download was successful
|
- name: Create jdk_download_completed lock directory if download was successful
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_download_completed"
|
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_download_completed"
|
||||||
state: directory
|
state: directory
|
||||||
when: jdk_downloaded.changed
|
when: jdk_downloaded.changed
|
||||||
|
|
||||||
- name: Remove jdk_downloading lock directory on success or fail
|
- 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
|
||||||
|
|
||||||
# this when applies to the whole block - only do this block on the one node that created the downloading lock
|
# this when applies to the whole block - only do this block on the one node that created the downloading lock
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user