mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
ITPLT-3650 drop support for Amazon Linux 2
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: amazon_linux2
|
||||
image: amazonlinux:2
|
||||
- name: amazon_linux2023
|
||||
image: amazonlinux:2023
|
||||
- name: ubuntu_lts
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: amazon_linux2
|
||||
image: amazonlinux:2
|
||||
- name: amazon_linux2023
|
||||
image: amazonlinux:2023
|
||||
- name: ubuntu_lts
|
||||
|
||||
@@ -1,45 +1,5 @@
|
||||
---
|
||||
|
||||
- name: Add Adoptium repo and install Eclipse Temurin JDK if necessary on Amazon Linux 2
|
||||
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 }}"
|
||||
- "{{ atl_adoptium_alternate_url is defined | ternary(atl_adoptium_alternate_url, '') }}"
|
||||
gpgkey:
|
||||
- https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||
- "{{ atl_adoptium_gpgkey_alternate_url is defined | ternary(atl_adoptium_gpgkey_alternate_url, '') }}"
|
||||
gpgcheck: yes
|
||||
state: present
|
||||
tags:
|
||||
- molecule-idempotence-notest
|
||||
|
||||
- name: Install Eclipse Temurin JDK
|
||||
ansible.builtin.yum:
|
||||
name: "temurin-{{ java_major_version }}-jdk"
|
||||
state: present
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python2
|
||||
|
||||
- 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 2
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- dejavu-fonts-common # Required by the installer
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python2
|
||||
- name: Amazon Linux 2 no longer supported
|
||||
fail:
|
||||
msg: "Amazon Linux 2 is no longer supported; see README.md for supported operating systems/environments."
|
||||
|
||||
Reference in New Issue
Block a user