mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 18:03:06 -06:00
first pass at basic AL2022 support
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- 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 2
|
||||
block:
|
||||
|
||||
- name: Add Adoptium yum repository
|
||||
@@ -31,7 +31,7 @@
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
- name: Install other base packages on Amazon Linux
|
||||
- name: Install other base packages on Amazon Linux 2
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- dejavu-fonts-common # Required by the installer
|
||||
35
roles/product_common/tasks/amazon-2022.yml
Normal file
35
roles/product_common/tasks/amazon-2022.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
|
||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2022
|
||||
block:
|
||||
|
||||
- name: Add Adoptium yum repository
|
||||
ansible.builtin.yum_repository:
|
||||
name: Adoptium
|
||||
file: adoptium
|
||||
description: Adoptium Repo
|
||||
baseurl: "https://packages.adoptium.net/artifactory/rpm/amazonlinux/{{ ansible_distribution_version }}/{{ ansible_architecture }}"
|
||||
gpgkey: https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||
gpgcheck: yes
|
||||
state: present
|
||||
|
||||
- name: Install Eclipse Temurin JDK
|
||||
ansible.builtin.yum:
|
||||
name: "temurin-{{ java_major_version }}-jdk"
|
||||
state: present
|
||||
|
||||
- name: Ensure common JDK symlink exists
|
||||
community.general.alternatives:
|
||||
link: "/usr/lib/jvm/java"
|
||||
name: "java_sdk"
|
||||
path: "/usr/lib/jvm/temurin-{{ java_major_version }}-jdk"
|
||||
priority: 99
|
||||
|
||||
when: atl_use_system_jdk | bool
|
||||
tags:
|
||||
- runtime_pkg
|
||||
|
||||
- name: Install other base packages on Amazon Linux 2022
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- dejavu-fonts-common # Required by the installer
|
||||
@@ -1,4 +1,4 @@
|
||||
---
|
||||
|
||||
- name: Perform distro-specific tasks
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}.yml"
|
||||
|
||||
Reference in New Issue
Block a user