ITPLT-3960 make indent rightish and unwrong

This commit is contained in:
bmeehan
2024-08-17 07:54:50 +10:00
parent f2142f4fc1
commit 6ff74dc1f1

View File

@@ -37,30 +37,31 @@
- not jdk_download_completed_lock.stat.exists
# 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
ansible.builtin.dnf:
name: "temurin-{{ java_major_version }}-jdk"
state: present
download_dir: "{{ atl_product_home_shared_download_dir }}"
download_only: true
update_cache: true
register: jdk_downloaded
retries: 5
delay: 10
until: jdk_downloaded is succeeded
- name: Try 5 times to download Eclipse Temurin JDK with dnf
ansible.builtin.dnf:
name: "temurin-{{ java_major_version }}-jdk"
state: present
download_dir: "{{ atl_product_home_shared_download_dir }}"
download_only: true
update_cache: true
register: jdk_downloaded
retries: 5
delay: 10
until: jdk_downloaded is succeeded
- name: Create jdk_download_completed lock directory if download was successful
ansible.builtin.file:
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_download_completed"
state: directory
when: jdk_downloaded.changed
- name: Create jdk_download_completed lock directory if download was successful
ansible.builtin.file:
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_download_completed"
state: directory
when: jdk_downloaded.changed
- name: Remove jdk_downloading lock directory on success or fail
ansible.builtin.file:
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_downloading"
state: absent
- name: Remove jdk_downloading lock directory on success or fail
ansible.builtin.file:
path: "{{ atl_product_home_shared_download_dir }}/temurin-{{ java_major_version }}-jdk_downloading"
state: absent
# this when applies to the whole block - only do this block on the one node that created the downloading lock
when: