Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/playbooks/AdoptOpenJDK_Unix_Playbook/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
- role: adoptopenjdk_install
jdk_version: 8
when:
- ansible_distribution != "Alpine"
- ansible_architecture != "riscv64"
tags: build_tools
- role: adoptopenjdk_install # JDK11 Build Bootstrap
Expand All @@ -93,6 +94,7 @@
- role: adoptopenjdk_install
jdk_version: 11
when:
- ansible_distribution != "Alpine"
- ansible_distribution != "Solaris"
- ansible_architecture != "riscv64"
tags: build_tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
path: /usr/lib/jvm/jdk8
register: adoptopenjdk8_installed

# Temp. Change to GA binary once theyre available
# Temp. Change to GA binary once they're available
- name: Install Temurin jdk8 nightly
unarchive:
src: https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u-2022-05-28-05-51-beta/OpenJDK8U-jdk_aarch64_alpine-linux_hotspot_2022-05-27-18-05.tar.gz
Expand All @@ -115,21 +115,21 @@
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk8_installed.rc != 0
- not adoptopenjdk8_installed.stat.exists

- name: Get Temurin jdk8 full path name
shell: set -o pipefail | ls -ld /usr/lib/jvm/jdk8u.* 2>/dev/null | awk '{print $9}'
shell: set -o pipefail | ls -ld /usr/lib/jvm/jdk8u* 2>/dev/null | awk '{print $9}'
register: adoptopenjdk8_dir
when:
- adoptopenjdk8_installed.rc != 0
- not adoptopenjdk8_installed.stat.exists

- name: Create symlink to major version
file:
src: '{{ adoptopenjdk8_dir.stdout }}'
dest: /usr/lib/jvm/jdk8
state: link
when:
- adoptopenjdk8_installed.rc != 0
- not adoptopenjdk8_installed.stat.exists

# Temp: install a non temurin binary until GA or when the jdk-11 alpine aarch64 build job becomes more stable (whichever comes first)
# https://github.com/adoptium/temurin-build/issues/2961
Expand All @@ -145,6 +145,7 @@
file:
src: /usr/lib/jvm/java-11-openjdk
dest: /usr/lib/jvm/jdk-11
state: link
when: not adoptopenjdk11_installed.stat.exists

- name: Check if zulu-16 is already installed in the target location
Expand Down Expand Up @@ -183,21 +184,21 @@
register: adoptopenjdk_download
until: adoptopenjdk_download is not failed
when:
- adoptopenjdk17_installed.rc != 0
- not adoptopenjdk17_installed.stat.exists

- name: Get Temurin jdk-17 full path name
shell: set -o pipefail | ls -ld /usr/lib/jvm/jdk-17.* 2>/dev/null | awk '{print $9}'
register: adoptopenjdk17_dir
when:
- adoptopenjdk17_installed.rc != 0
- not adoptopenjdk17_installed.stat.exists

- name: Create symlink to major version
file:
src: '{{ adoptopenjdk17_dir.stdout }}'
dest: /usr/lib/jvm/jdk-17
state: link
when:
- adoptopenjdk17_installed.rc != 0
- not adoptopenjdk17_installed.stat.exists

- name: Check if zulu-18 is already installed in the target location
stat: path=/usr/lib/jvm/zulu18
Expand Down