Skip to content
Snippets Groups Projects
Commit b3b7d76b authored by jurgenhaas's avatar jurgenhaas
Browse files

Switch to Oracle Java from OpenJDK

parent 4a1bfcc6
Branches develop
No related tags found
No related merge requests found
......@@ -9,13 +9,19 @@
- name: "Apt Repository"
apt_repository:
repo='deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main'
repo='deb http://ppa.launchpad.net/webupd8team/java/ubuntu {{ ansible_distribution_release }} main'
state='present'
mode=644
- name: "Accept License"
shell: '{{ item }}'
with_items:
- 'echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections'
- 'echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections'
- name: "Install Agent"
apt:
pkg='openjdk-8-jre'
pkg='oracle-java8-installer'
state='installed'
update_cache=yes
force=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment