Izveden refactor iz taskov v role

This commit is contained in:
Polz 2023-09-11 22:30:48 +02:00
parent 747438dedf
commit a35460a57b
317 changed files with 2761 additions and 50 deletions

View file

@ -0,0 +1,4 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -0,0 +1,6 @@
# TODO: usposobi install Matlaba na D:
# TODO: zamenjaj podvojene datoteke s symlinki
- name: Matlab
debug:
msg: "Matlab"

View file

@ -0,0 +1,26 @@
- 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