Skip to content

Instantly share code, notes, and snippets.

@zaiste
Created May 25, 2014 15:21
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 zaiste/3f965444e34872f83dd7 to your computer and use it in GitHub Desktop.
Save zaiste/3f965444e34872f83dd7 to your computer and use it in GitHub Desktop.
Ansible
- name: Add Oracle Java PPA
apt_repository: repo='ppa:webupd8team/java'
- name: Accept Oracla Java license
shell: echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
- name: Install Oracle Java 7 and Maven
apt: pkg=oracle-java8-installer update_cache=yes state=installed
- name: Set Oracle Java 7 JAVA_HOME environment variable
apt: pkg=oracle-java8-set-default state=latest
- name: Grabbing the node repository
apt_repository: repo='ppa:chris-lea/node.js' state=present update_cache=yes
- name: Install node!
apt: pkg=nodejs state=latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment