|
166 | 166 | - ansible_architecture == "armv7l" |
167 | 167 | tags: default_java |
168 | 168 |
|
| 169 | +- name: Check if JDK25/arm32 is already installed in the target location |
| 170 | + stat: path=/usr/lib/jvm/jdk25/bin/java |
| 171 | + register: jdk25_installed |
| 172 | + when: |
| 173 | + - ansible_architecture == "armv7l" |
| 174 | + tags: build_tools |
| 175 | + |
| 176 | +- name: Download JDK25/arm32 build |
| 177 | + get_url: |
| 178 | + url: https://ci.adoptium.net/userContent/arm32/OpenJDK25U.arm32_linux.25+36.tar.gz |
| 179 | + dest: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz |
| 180 | + force: no |
| 181 | + mode: 0755 |
| 182 | + checksum: sha256:9bc512f841a649fa4ae6244f87ef6e9789f779fb4f35ce781231960c498ba3b8 |
| 183 | + when: |
| 184 | + - ansible_architecture == "armv7l" |
| 185 | + - not jdk25_installed.stat.exists |
| 186 | + tags: build_tools |
| 187 | + |
| 188 | +- name: Decompress jdk25/arm32 |
| 189 | + unarchive: |
| 190 | + src: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz |
| 191 | + dest: /usr/lib/jvm |
| 192 | + remote_src: yes |
| 193 | + when: |
| 194 | + - ansible_architecture == "armv7l" |
| 195 | + - not jdk25_installed.stat.exists |
| 196 | + tags: build_tools |
| 197 | + |
| 198 | +- name: Remove jdk25/arm32 tarball |
| 199 | + file: |
| 200 | + path: /tmp/OpenJDK25U.arm32_linux.25+36.tar.gz |
| 201 | + state: absent |
| 202 | + when: |
| 203 | + - ansible_architecture == "armv7l" |
| 204 | + - not jdk25_installed.stat.exists |
| 205 | + tags: build_tools |
| 206 | + |
| 207 | +- name: Create jdk25 symlink on arm32 |
| 208 | + file: |
| 209 | + src: /usr/lib/jvm/jdk-25+36 |
| 210 | + dest: /usr/lib/jvm/jdk25 |
| 211 | + state: link |
| 212 | + when: |
| 213 | + - ansible_architecture == "armv7l" |
| 214 | + - not jdk25_installed.stat.exists |
| 215 | + tags: adoptopenjdk_install |
| 216 | + |
169 | 217 | - name: Set default java version for ppc64le |
170 | 218 | alternatives: |
171 | 219 | name: java |
|
0 commit comments