ITPLT-2313 allow passing atl_jdk_tgz the url of the adoptium tgz else use installer

This commit is contained in:
bmeehan
2022-11-16 15:37:22 +11:00
parent 0a9702c493
commit 944f32df1e

View File

@@ -1,6 +1,6 @@
--- ---
- name: install jdk via tzg if atl_jdk_tgz set - name: install jdk via tzg if atl_jdk_tgz_url set
block: block:
- name: ensure /usr/lib/jvm exists - name: ensure /usr/lib/jvm exists
ansible.builtin.file: ansible.builtin.file:
@@ -10,7 +10,7 @@
- name: fetch jdk via tgz to /tmp - name: fetch jdk via tgz to /tmp
ansible.builtin.get_url: ansible.builtin.get_url:
url: "{{ atl_jdk_tgz }}" url: "{{ atl_jdk_tgz_url }}"
dest: "/tmp/" dest: "/tmp/"
mode: 0755 mode: 0755
force: true force: true
@@ -44,7 +44,7 @@
path: "{{ atl_tgz_unpacked.files[0].path }}" path: "{{ atl_tgz_unpacked.files[0].path }}"
priority: 99 priority: 99
when: atl_jdk_tgz when: atl_jdk_tgz_url
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux - name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux
block: block:
@@ -75,7 +75,7 @@
when: when:
- atl_use_system_jdk | bool - atl_use_system_jdk | bool
- not atl_jdk_tgz - not atl_jdk_tgz_url
tags: tags:
- runtime_pkg - runtime_pkg