Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sti-cluster
ansible_mathematica
Commits
cdb8aec1
Commit
cdb8aec1
authored
Mar 05, 2021
by
Pullyvan Krishnamoorthy
Browse files
Add CentOS and debian support
parent
0217ed11
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
cdb8aec1
---
# 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
-
include
:
debian.yml tags=debian
when
:
ansible_os_family == 'Debian'
-
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 {{ 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
unarchive
:
dest
:
/tmp
src
:
"
/tmp/{{
mathematica_versions[mathematica_install_version]['url']
}}"
remote_src
:
yes
extra_opts
:
-
-P
-
"
{{
mathematica_versions[mathematica_install_version]['password']
}}"
-
name
:
make mathematica installer executable
file
:
path
:
"
/tmp/{{
mathematica
}}"
mode
:
"
+x"
-
name
:
silently install mathematica
become
:
yes
command
:
cmd
:
"
./{{
mathematica
}}
--
-silent"
chdir
:
"
/tmp"
-
include
:
centos.yml tags=centos
when
:
ansible_distribution == "CentOS"
\ No newline at end of file
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