Skip to content

Instantly share code, notes, and snippets.

@wkf
Created April 8, 2014 15:58
Show Gist options
  • Save wkf/10147535 to your computer and use it in GitHub Desktop.
Save wkf/10147535 to your computer and use it in GitHub Desktop.
---
- name: Add webupd8 apt key
apt_key: url="http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0xEEA14886" state=present
- name: Add webupd8 apt repository
apt_repository: repo="deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" state=present
- name: Select the Oracle License
shell: echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
- name: Install Oracle java 7
apt: pkg={{ item }} update_cache=yes state=latest
with_items:
- oracle-java7-installer
- oracle-java7-set-default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment