Created
April 8, 2014 15:58
-
-
Save wkf/10147535 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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