Update dev-deploy.yml to force install of openjdk-8 from backports. master
authorWayne Schneider <wayne@indexdata.com>
Fri, 21 Jul 2017 21:29:43 +0000 (16:29 -0500)
committerWayne Schneider <wayne@indexdata.com>
Fri, 21 Jul 2017 21:29:43 +0000 (16:29 -0500)
dev-deploy.yml

index 5755962..ed2df3d 100644 (file)
       become: yes
       apt_repository: repo="deb http://ftp.debian.org/debian jessie-backports main" state=present update_cache=yes
       
-    - name: Install openjdk
+    - name: Install openjdk from backports
       become: yes
-      apt: name=openjdk-8-jdk state=present
+      apt: name=openjdk-8-jdk state=present default_release=jessie-backports
+
+    - name: Make Java 8 the system default
+      become: yes
+      shell: update-java-alternatives --set java-1.8.0-openjdk-amd64 && touch /etc/.set_javadefault_ansible
+      args:
+        creates: /etc/.set_javadefault_ansible
 
     - name: Create deployment environment
       become: yes