mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2026-02-01 08:43:14 -06:00
ITPLT-2313 allow passing atl_jdk_tgz the url of the adoptium tgz else use installer
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user