Add Debian-arm64 Java task 62/12262/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 15 Aug 2018 23:41:46 +0000 (16:41 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 16 Aug 2018 01:41:41 +0000 (01:41 +0000)
Install JDK8 and JDK9 for ARM64 architectures.

Change-Id: I5ffe5eb7d8cc41421ec0370b6d6837408fdb2d32
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
tasks/Debian-arm64.yml [new file with mode: 0644]
tasks/main.yml

diff --git a/tasks/Debian-arm64.yml b/tasks/Debian-arm64.yml
new file mode 100644 (file)
index 0000000..1853416
--- /dev/null
@@ -0,0 +1,17 @@
+---
+- apt_repository:
+    repo: 'ppa:openjdk-r/ppa'
+  become: true
+
+- name: Install Java 8 SDK
+  apt: name=openjdk-8-jdk state=present update_cache=yes
+  become: true
+
+- name: Install Java 9 SDK
+  apt: name=openjdk-9-jdk state=present update_cache=yes
+  become: true
+
+
+- name: Set Java path
+  set_fact:
+    java_path: /usr/lib/jvm/java-1.8.0-openjdk-arm64
index 00ec25a..e0959cf 100644 (file)
@@ -1,6 +1,7 @@
 ---
 - include_tasks: '{{item}}'
   with_first_found:
+    - '{{ansible_os_family}}-{{ansible_architecture}}.yaml'
     - '{{ansible_distribution}}.yml'
     - '{{ansible_os_family}}.yml'