Commit bd81d68f authored by Pullyvan Krishnamoorthy's avatar Pullyvan Krishnamoorthy
Browse files

add boto packages and change download to aws s3 with boto instead

parent ab24528a
---
# tasks file for mathematica
- name: install S3 requirements
become: yes
apt:
state: latest
pkg:
- python3-boto
- python3-boto3
- python3-botocore
- python-boto
- python-boto3
- python-botocore
- 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
- name: Download {{ comsol_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/"
mode: get
s3_url: https://s3.epfl.ch/
validate_certs: no
when: mathematica_bundle.stat.exists == false
- name: Download {{ mathematica_install_version }}.zip & Unzip
......
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