Commit c21b2a88 authored by Emmanuel Jaep's avatar Emmanuel Jaep
Browse files

split the download and unzipping of installer in order to increase timeout

parent cfeac3f2
---
# tasks file for mathematica
- name: check that {{ mathematica_install_version }}.zip is not already downloaded
stat:
path: "/tmp/{{ mathematica_versions[mathematica_install_version]['url'] }}"
register: mathematica_bundle
- name: download {{ mathematica_install_version }}.zip
get_url:
url: "{{ s3_base_url }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
dest: "/tmp"
timeout: 120
when: mathematica_bundle.stat.exists == false
- name: Download {{ mathematica_install_version }}.zip & Unzip
unarchive:
dest: /tmp
src: "{{ s3_base_url }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
src: "/tmp/{{ mathematica_versions[mathematica_install_version]['url'] }}"
remote_src: yes
extra_opts:
- -P
- "{{ mathematica_versions[mathematica_install_version]['password'] }}"
- name: Chmod on mathematica installer
command:
cmd: "chmod +x {{ mathematica }}"
chdir: "/tmp"
- name: make mathematica installer executable
file:
path: "/tmp/{{ mathematica }}"
mode: "+x"
- name: install mathematica in silent
- name: silently install mathematica
become: yes
command:
cmd: "./{{ mathematica }} -- -silent"
chdir: "/tmp"
\ No newline at end of file
chdir: "/tmp"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment