diff --git a/liebchen.yml b/liebchen.yml index 603dab5..e7581ec 100644 --- a/liebchen.yml +++ b/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: