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
|
- name: unmount MATLAB install media
|
||||||
command: umount /mnt
|
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
|
- name: Define MATLAB path
|
||||||
lineinfile:
|
copy:
|
||||||
state: present
|
dest: "/etc/profile.d/matlab.sh"
|
||||||
path: "/etc/environment"
|
content: |
|
||||||
line: "PATH=$PATH:/opt/matlab/R2023b/bin"
|
"PATH=$PATH:/opt/matlab/R2023b/bin"
|
||||||
when: check.found == 0
|
|
||||||
|
|
||||||
- name: Add MATLAB desktop entry
|
- name: Add MATLAB desktop entry
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user