Skip to content

Instantly share code, notes, and snippets.

@trkoch
Created February 18, 2014 11:17
Show Gist options
  • Save trkoch/9069065 to your computer and use it in GitHub Desktop.
Save trkoch/9069065 to your computer and use it in GitHub Desktop.
Install Oracle Java 7 with Ansible
- name: Java | add java repository
apt_repository: repo='ppa:webupd8team/java'
- name: Java | auto accept license
action: shell echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
- name: Java | install Java 7
action: apt pkg=oracle-java7-installer state=installed update-cache=yes
- name: Java | set env
action: apt pkg=oracle-java7-set-default state=installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment