Do not attempt java 7 installation on Ubuntu 18+ 85/13985/1
authorEric Ball <eball@linuxfoundation.org>
Thu, 13 Dec 2018 23:48:12 +0000 (15:48 -0800)
committerEric Ball <eball@linuxfoundation.org>
Thu, 13 Dec 2018 23:48:12 +0000 (15:48 -0800)
For newer versions of Ubuntu, there is no longer an openjdk-7-jdk
package.

Change-Id: I9063e5e16cfa23aa0bd6cfe609ba9cd0fac1ba69
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
tasks/Debian.yml

index af56eb4..856ac58 100644 (file)
@@ -6,6 +6,7 @@
 - name: Install Java 7 SDK
   apt: name=openjdk-7-jdk state=present update_cache=yes
   become: true
+  when: ansible_distribution_version < '18.04'
 
 - name: Install Java 8 SDK
   apt: name=openjdk-8-jdk state=present update_cache=yes