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
ca2960db
Commit
ca2960db
authored
Mar 08, 2021
by
Pullyvan Krishnamoorthy
Committed by
Emmanuel Jaep
Mar 08, 2021
Browse files
Add cent os support for mathematica2
parent
e83d60e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
defaults/main.yml
View file @
ca2960db
...
...
@@ -3,7 +3,7 @@
s3_base_url
:
https://s3.epfl.ch/10282-70726cc2c34fcfe7d4325ef7ea151411
mathematica_install_version
:
mathematica_12
tmp_mathematica
:
"
/tmp/mathematica"
mathematica_versions
:
mathematica_12
:
url
:
Mathematica_12.0.0_LINUX.zip
...
...
tasks/centos.yml
0 → 100644
View file @
ca2960db
---
# tasks file for mathematica
-
name
:
install S3 requirements
become
:
yes
yum
:
state
:
latest
pkg
:
-
unzip
-
python-boto.noarch
-
python-boto3.noarch
-
python2-botocore.noarch
-
name
:
check that {{ mathematica_install_version }}.zip is not already downloaded
stat
:
path
:
"
/tmp/{{
mathematica_versions[mathematica_install_version]['url']
}}"
register
:
mathematica_bundle
-
name
:
Create matlab folder
file
:
path
:
"
{{
tmp_mathematica
}}"
state
:
directory
mode
:
"
0755"
-
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_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
:
Unzip {{ mathematica_install_version }}.zip
unarchive
:
dest
:
/tmp
src
:
"
{{
tmp_mathematica
}}/{{
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"
tasks/debian.yml
0 → 100644
View file @
ca2960db
---
# tasks file for mathematica
-
name
:
install S3 requirements
become
:
yes
apt
:
state
:
latest
pkg
:
-
python3-boto
-
python3-boto3
-
python3-botocore
-
name
:
check that {{ mathematica_install_version }}.zip is not already downloaded
stat
:
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 {{ 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_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
:
Unzip {{ mathematica_install_version }}.zip
unarchive
:
dest
:
/tmp
src
:
"
{{
tmp_mathematica
}}/{{
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"
tasks/main.yml
View file @
ca2960db
---
# 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