Commit 65d5e29f authored by Pullyvan Krishnamoorthy's avatar Pullyvan Krishnamoorthy
Browse files

fix tmp directory and unzip source

parent dbf30461
......@@ -14,26 +14,32 @@
- name: check that {{ mathematica_install_version }}.zip is not already downloaded
stat:
path: "/tmp/{{ mathematica_versions[mathematica_install_version]['url'] }}"
path: "{{ tmp_mathematica }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
register: mathematica_bundle
- name: Create matlab folder
file:
path: "{{ tmp_mathematica }}"
state: directory
mode: "0755"
- name: Download {{ comsol_install_version }}.zip
- name: Download {{ mathematica_install_version }}.zip
amazon.aws.aws_s3:
access_key: "{{ aws_access_key }}"
secret_key: "{{ aws_secret_key }}"
bucket: 10282-70726cc2c34fcfe7d4325ef7ea151411
object: "/{{ mathematica_versions[mathematica_install_version]['url'] }}"
dest: "/tmp/"
dest: "{{ tmp_mathematica }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
mode: get
s3_url: https://s3.epfl.ch/
validate_certs: no
when: mathematica_bundle.stat.exists == false
- name: Download {{ mathematica_install_version }}.zip & Unzip
- name: Unzip {{ mathematica_install_version }}.zip
unarchive:
dest: /tmp
src: "/tmp/{{ mathematica_versions[mathematica_install_version]['url'] }}"
src: "{{ tmp_mathematica }}/{{ mathematica_versions[mathematica_install_version]['url'] }}"
remote_src: yes
extra_opts:
- -P
......
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