moved matlab path to profile.d

This commit is contained in:
IPKM Admin 2024-02-11 16:40:54 +01:00
parent c3ff685e10
commit 3e98deef52

View File

@ -124,21 +124,11 @@
- name: unmount MATLAB install media
command: umount /mnt
- name: Check if MATLAB is defined in PATH
lineinfile:
state: absent
path: "/etc/environment"
regexp: "^PATH=$PATH:/opt/matlab"
check_mode: true
changed_when: false # This just makes things look prettier in the logs
register: check
- name: Define MATLAB path
lineinfile:
state: present
path: "/etc/environment"
line: "PATH=$PATH:/opt/matlab/R2023b/bin"
when: check.found == 0
copy:
dest: "/etc/profile.d/matlab.sh"
content: |
"PATH=$PATH:/opt/matlab/R2023b/bin"
- name: Add MATLAB desktop entry
copy: