From 4a2f0ebb0593b28ca1dc20490feac747888b5d6f Mon Sep 17 00:00:00 2001 From: IPKM Admin Date: Sun, 11 Feb 2024 16:17:56 +0100 Subject: [PATCH] added matlab bin to PATH --- liebchen.yml | 18 ++++++++++++++++++ matlab.inputfile | 21 --------------------- 2 files changed, 18 insertions(+), 21 deletions(-) delete mode 100644 matlab.inputfile diff --git a/liebchen.yml b/liebchen.yml index be85283..f863af3 100644 --- a/liebchen.yml +++ b/liebchen.yml @@ -123,3 +123,21 @@ - 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 + + diff --git a/matlab.inputfile b/matlab.inputfile deleted file mode 100644 index 39a6df4..0000000 --- a/matlab.inputfile +++ /dev/null @@ -1,21 +0,0 @@ -destinationFolder=/usr/local/matlab/2019a -#fileInstallationKey=50468-05778-50105-26415-30689-14964-36513-02144-36878-13258-03179-49640-04137-55722-26040-38926-13815-16654-41158-55975-41818 -# valid until 2024-09-30 -fileInstallationKey=31468-39701-35950-32255-54389-57202-06793-22523-49237-35843-51591-61079-46915-13930-55363-44293-06243-01642-16999-33828-28371-46879-55567-04227-56907-35688 -agreeToLicense=yes -outputFile=/tmp/matlab2019a.log -mode=silent -licensePath=/etc/network-lic.dat -product.GPU_Coder -product.Global_Optimization_Toolbox -product.Image_Processing_Toolbox -product.MATLAB -product.MATLAB_Coder -product.MATLAB_Compiler -product.MATLAB_Compiler_SDK -product.MATLAB_Report_Generator -product.Optimization_Toolbox -product.Parallel_Computing_Toolbox -product.Statistics_and_Machine_Learning_Toolbox -product.Symbolic_Math_Toolbox -