Update openjdk install task for Amazon Linux hosts

This commit is contained in:
Jose M 2020-06-24 16:38:08 +02:00
parent 10f3d22464
commit f355044a51
No known key found for this signature in database
GPG Key ID: 790179D6924E10FF

View File

@ -35,10 +35,9 @@
name: amazon-linux-extras name: amazon-linux-extras
state: present state: present
- name: Install OpenJDK 11 - name: Install OpenJDK 11
yum: shell: amazon-linux-extras install java-openjdk11 -y
name: java-openjdk11
state: present
when: when:
- ansible_distribution == 'Amazon' - ansible_distribution == 'Amazon'