Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sti-cluster
ansible_mathematica
Commits
9b8aa0e2
Commit
9b8aa0e2
authored
Mar 05, 2021
by
Pullyvan Krishnamoorthy
Committed by
Emmanuel Jaep
Mar 05, 2021
Browse files
Add boto packages python mathematica
parent
c21b2a88
Changes
2
Hide whitespace changes
Inline
Side-by-side
defaults/main.yml
View file @
9b8aa0e2
...
...
@@ -18,4 +18,21 @@ mathematica_versions:
343564343164316232376630373766323361
mathematica
:
Mathematica_12.0.0_LINUX.sh
\ No newline at end of file
mathematica
:
Mathematica_12.0.0_LINUX.sh
aws_access_key
:
!vault
|
$ANSIBLE_VAULT;1.1;AES256
61653863313239353563376165396363303837326136376336363164313861346265666165633264
3866613631376466323065623537356461643135666531640a643933373139623637373234633864
63346235373732373034633261633465353931663630353936396230323863323964343762323762
3233313132306666350a373439363938366362663634323039393966336464306565353066393362
36643262316139393531616335326439643566666135306466386231343762336135
aws_secret_key
:
!vault
|
$ANSIBLE_VAULT;1.1;AES256
63333833383837636135663937313738353364323635366162323366663633666264396161666165
3435313865363630376261313638646366396466633662650a383239666665333938663136353834
33653735386665333938373332343865343235623266616538633366323837383530633364623736
3063656234356462380a366638626665313933626462623432356238616363393636333862633964
66366338336561366235666561333133653337366637333835383063323765353732313665343334
3162363761623835393664613230376164653263386165393162
\ No newline at end of file
tasks/main.yml
View file @
9b8aa0e2
---
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment