Created
April 15, 2014 13:41
-
-
Save wkf/10733703 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: keyserver=keyserver.ubuntu.com id=EEA14886 state=present | |
- name: add webupd8 apt repository | |
apt_repository: repo='deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' state=present | |
- name: accept the oracle license | |
debconf: name='oracle-java7-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select' | |
- 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