From 6ff74dc1f1be1438407ba34cfbe09df87a93c254 Mon Sep 17 00:00:00 2001 From: bmeehan Date: Sat, 17 Aug 2024 07:54:50 +1000 Subject: [PATCH] ITPLT-3960 make indent rightish and unwrong --- roles/product_common/tasks/amazon-2023.yml | 43 +++++++++++----------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/roles/product_common/tasks/amazon-2023.yml b/roles/product_common/tasks/amazon-2023.yml index 857336b..61c7096 100644 --- a/roles/product_common/tasks/amazon-2023.yml +++ b/roles/product_common/tasks/amazon-2023.yml @@ -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: