Last active
August 29, 2015 13:56
-
-
Save safx/9291066 to your computer and use it in GitHub Desktop.
install Oracle Java 7 SE SDK
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
- hosts: node1 | |
user: vagrant | |
sudo: yes | |
tasks: | |
- name: install python-pycurl | |
apt: pkg=python-pycurl update_cache=yes | |
- name: Add the webupd8 APT repository | |
tags: java | |
apt_repository: repo="deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" state=present | |
- name: Automatically accept the Oracle License | |
tags: java | |
shell: echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
- name: Install Oracle Java 7 SE SDK | |
tags: java | |
apt: pkg=oracle-jdk7-installer update-cache=yes state=latest force=yes | |
- name: install Maven2 | |
apt: pkg=maven2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment