Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install matlab as a dummy app #359

Open
wants to merge 1 commit into
base: uab-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions roles/ohpc_matlab/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
- name: install the latest version of libXtst
yum:
name: libXt
state: latest

- name: Create directory
- name: Create matlab directory
file:
path: "{{ matlab_clustershare }}"
state: directory
mode: 0755

- name: Download matlab
get_url:
url: "{{ matlab_download_url }}"
dest: "{{ matlab_destination }}"
- name: Create directoryi for matlab bin
file:
path: "{{ matlab_clustershare }}/{{ matlab_module_file }}/bin"
state: directory
mode: 0755

- name: Extract matlab
unarchive:
src: "{{ matlab_destination }}"
dest: "{{ matlab_clustershare }}"
remote_src: yes
- name: Install MATLAB (Executable file to run xfce4desktop)
template:
src: "{{ matlab_module_appdir }}"
dest: "{{ matlab_clustershare }}/{{ matlab_module_file }}/bin/{{ matlab_module_appdir }}"
mode: a+x

- name: Create directory
- name: Create modules directory
file:
path: "{{ matlab_module_path }}/{{ matlab_module_appdir }}"
state: directory
Expand Down
3 changes: 3 additions & 0 deletions roles/ohpc_matlab/templates/matlab
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

xfce4-terminal