From: Eric Ball Date: Thu, 13 Dec 2018 23:48:12 +0000 (-0800) Subject: Do not attempt java 7 installation on Ubuntu 18+ X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=5061c9dff971bb5df6f8da808a915d49cdca1cc5;p=ansible%2Froles%2Fjava-install.git Do not attempt java 7 installation on Ubuntu 18+ For newer versions of Ubuntu, there is no longer an openjdk-7-jdk package. Change-Id: I9063e5e16cfa23aa0bd6cfe609ba9cd0fac1ba69 Signed-off-by: Eric Ball --- diff --git a/tasks/Debian.yml b/tasks/Debian.yml index af56eb4..856ac58 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -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