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 # 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 - name: Download {{ mathematica_install_version }}.zip & Unzip
unarchive: unarchive:
dest: /tmp dest: /tmp
src: "{{ s3_base_url }}/{{ mathematica_versions[mathematica_install_version]['url'] }}" src: "/tmp/{{ mathematica_versions[mathematica_install_version]['url'] }}"
remote_src: yes remote_src: yes
extra_opts: extra_opts:
- -P - -P
- "{{ mathematica_versions[mathematica_install_version]['password'] }}" - "{{ mathematica_versions[mathematica_install_version]['password'] }}"
- name: Chmod on mathematica installer - name: make mathematica installer executable
command: file:
cmd: "chmod +x {{ mathematica }}" path: "/tmp/{{ mathematica }}"
chdir: "/tmp" mode: "+x"
- name: install mathematica in silent - name: silently install mathematica
become: yes become: yes
command: command:
cmd: "./{{ mathematica }} -- -silent" cmd: "./{{ mathematica }} -- -silent"
chdir: "/tmp" chdir: "/tmp"
\ No newline at end of file
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