moved matlab path to profile.d
This commit is contained in:
parent
c3ff685e10
commit
3e98deef52
18
liebchen.yml
18
liebchen.yml
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user