Skip to content

Commit 5aa3a43

Browse files
committed
configure rstudio app on compute node
1 parent 61668fe commit 5aa3a43

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ansible/roles/openondemand/tasks/rstudio_compute.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,30 @@
22
# See https://osc.github.io/ood-documentation/latest/tutorials/tutorials-interactive-apps/add-rstudio.html
33
# - Will already have lmod
44

5+
- name: Install R and RStudio Server on RHEL-based system
6+
hosts: all
7+
become: true
8+
tasks:
9+
- name: Install EPEL and dependencies
10+
ansible.builtin.yum:
11+
name:
12+
- epel-release
13+
- R
14+
state: present
15+
16+
- name: Download RStudio Server RPM
17+
ansible.builtin.get_url:
18+
url: https://download2.rstudio.org/server/centos8/x86_64/rstudio-server-rhel-2023.12.1-402-x86_64.rpm
19+
dest: /tmp/rstudio-server.rpm
20+
mode: '0644'
21+
22+
- name: Install RStudio Server
23+
ansible.builtin.yum:
24+
name: /tmp/rstudio-server.rpm
25+
state: present
26+
27+
- name: Ensure rstudio-server service is enabled and stopped (used only in OOD job)
28+
ansible.builtin.service:
29+
name: rstudio-server
30+
enabled: false
31+
state: stopped

0 commit comments

Comments
 (0)