-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_matlab_runtime.yml
41 lines (37 loc) · 1.21 KB
/
install_matlab_runtime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- name: Install Matlab Runtime
hosts:
- localhost
gather_facts: false
tasks:
- name: Update repository cache
become: Yes
apt:
update_cache: true
cache_valid_time: 3600
force_apt_get: true
- name: Create path for unzip
file:
dest: /data/volume_2/MATLAB_Runtime
state: directory
- name: Download matlab runtime unzip
unarchive:
src: https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/6/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_6_glnxa64.zip
dest: /data/volume_2/MATLAB_Runtime
remote_src: yes
- name: Install libs for libxt.so.6 issue
# https://nl.mathworks.com/matlabcentral/answers/102840-why-do-i-get-a-java-error-libxt-so-6-cannot-open-shared-object-file-no-such-file-or-directory-wh
become: yes
apt:
force_apt_get: yes
name: "{{ packages }}"
allow_unauthenticated: true
vars:
packages:
- libx11-dev
- libxcursor1
- libxi6
- name: Install matlab runtime
become: Yes
command: ./install -mode silent -agreeToLicense yes
args:
chdir: /data/volume_2/MATLAB_Runtime/