mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
ITPLT-3960 add failsafe dnf install of jdk
This commit is contained in:
@@ -39,11 +39,11 @@
|
|||||||
# handle the jdk download on only 1 node
|
# handle the jdk download on only 1 node
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- name: Download Eclipse Temurin JDK with yum
|
- name: Download Eclipse Temurin JDK with dnf
|
||||||
ansible.builtin.yum:
|
ansible.builtin.dnf:
|
||||||
name: "temurin-{{ java_major_version }}-jdk"
|
name: "temurin-{{ java_major_version }}-jdk"
|
||||||
state: latest
|
state: present
|
||||||
download_dir: "{{atl_product_home_shared_download_dir}}"
|
download_dir: atl_product_home_shared_download_dir
|
||||||
download_only: yes
|
download_only: yes
|
||||||
register: jdk_downloaded
|
register: jdk_downloaded
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -106,6 +106,11 @@
|
|||||||
- jdk_download_completed.state == "directory"
|
- jdk_download_completed.state == "directory"
|
||||||
- temurin_rpm_file.files
|
- temurin_rpm_file.files
|
||||||
- temurin_rpm_file.files | length > 0
|
- temurin_rpm_file.files | length > 0
|
||||||
|
always:
|
||||||
|
- name: Always ensure Eclipse Temurin JDK is present (get from internet if cache install fails or is unavailable)
|
||||||
|
ansible.builtin.yum:
|
||||||
|
name: "temurin-{{ java_major_version }}-jdk"
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Ensure common JDK symlink exists
|
- name: Ensure common JDK symlink exists
|
||||||
community.general.alternatives:
|
community.general.alternatives:
|
||||||
|
|||||||
Reference in New Issue
Block a user