Add MATLAB
WIP - license activation does not work currently.
This commit is contained in:
parent
6c9090f695
commit
a7b3a7f02d
|
@ -1 +1,26 @@
|
||||||
# TODO
|
- name: Set Matlab version
|
||||||
|
set_fact:
|
||||||
|
target_version: "r2022b"
|
||||||
|
|
||||||
|
- name: Mount Matlab ISO
|
||||||
|
win_disk_image:
|
||||||
|
image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}.iso"
|
||||||
|
state: present
|
||||||
|
register: disk_image
|
||||||
|
|
||||||
|
- name: Install Matlab
|
||||||
|
win_package:
|
||||||
|
path: "{{ disk_image.mount_paths[0] }}\\setup.exe"
|
||||||
|
arguments: -inputFile "{{ installers }}\\matlab\\installer_input.txt"
|
||||||
|
|
||||||
|
- name: Unmount Matlab ISO
|
||||||
|
win_disk_image:
|
||||||
|
image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}.iso"
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
# TODO MATLAB throws license error -83 when run
|
||||||
|
- name: Install Matlab license
|
||||||
|
win_copy:
|
||||||
|
dest: "%ProgramFiles%\\MATLAB\\{{ target_version }}\\licenses\\network.lic"
|
||||||
|
src: "{{ installers }}\\matlab\\network.lic"
|
||||||
|
remote_src: yes
|
||||||
|
|
Loading…
Reference in a new issue