Install amazon-linux-extras before OpenJDK on Amazon Linux hosts
This commit is contained in:
parent
9aa083ff2e
commit
10f3d22464
@ -25,6 +25,22 @@
|
||||
yum:
|
||||
name: java-11-openjdk-devel
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution != 'Amazon'
|
||||
|
||||
- name: Amazon Linux | Install OpenJDK 11
|
||||
block:
|
||||
- name: Install Amazon extras
|
||||
yum:
|
||||
name: amazon-linux-extras
|
||||
state: present
|
||||
|
||||
- name: Install OpenJDK 11
|
||||
yum:
|
||||
name: java-openjdk11
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution == 'Amazon'
|
||||
|
||||
- name: RedHat/CentOS/Fedora | Install OpenDistro dependencies
|
||||
yum:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user