Created
January 27, 2016 16:46
-
-
Save casibbald/80b289098225f8e16bd2 to your computer and use it in GitHub Desktop.
large downloads fail for no explicable reason
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: webservers | |
vars: | |
java_minor_version: 66 | |
osx_java_file: "jdk-8u{{ java_minor_version }}-macosx-x64.dmg" | |
osx_java_url: "http://download.oracle.com/otn-pub/java/jdk/8u{{ java_minor_version }}-b17" | |
- name: Check if Java Installed | |
stat: path="/Library/Java/JavaVirtualMachines/jdk1.8.0_{{ java_minor_version }}.jdk/Contents/Home/bin/java" | |
register: java_installed | |
- name: download Oracle Java 8 | |
get_url: url="{{ osx_java_url }}/{{ osx_java_file }}" dest="/tmp/" timeout=1000 headers='Cookie:oraclelicense=accept-securebackup-cookie' | |
when: java_installed.stat.exists != true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output of this is: