Skip to content

Instantly share code, notes, and snippets.

@safx
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save safx/9291066 to your computer and use it in GitHub Desktop.
Save safx/9291066 to your computer and use it in GitHub Desktop.
install Oracle Java 7 SE SDK
- 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