From 3e98deef5268e592cdcb01c997b2dd2ecefb8c2f Mon Sep 17 00:00:00 2001 From: IPKM Admin Date: Sun, 11 Feb 2024 16:40:54 +0100 Subject: [PATCH] moved matlab path to profile.d --- liebchen.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) 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: