Created
February 18, 2014 11:17
-
-
Save trkoch/9069065 to your computer and use it in GitHub Desktop.
Install Oracle Java 7 with Ansible
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: 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