Set up (the latest version of) RStudio Connect in Debian-like systems.
curl(will be installed)r-base(will not be installed)
rstudio_connect_version[default:2025.04.0]: Version to installrstudio_connect_install[default:[]]: Additional packages to install (e.g.r-base)rstudio_connect_www_port[default:3939]: The port you want RStudio Connect to listen onrstudio_connect_config: A map of maps containing RStudio Connect configuration. Gets converted into Golang's configuration file (GCFG) and is writted on down torstudio-connect.gcfg. See default for an example.rstudio_connect_config_override[default:""]: If you know what you're doing, you can override wholerstudio-connect.gcfgconfig.rstudio_connect_license: If specified, RStudio Connect will attempt to activate the supplied license key.rstudio_connect_python_executables[default:[]]: List of paths to Python executables (e.g.[/opt/python/3.10.6/bin/python3]).python_versions[default:[]]: List of Python versions, which were installed with ansible-python-install role (e.g.[3.10.6, 3.7.8]). Role will append Python executables information to the RStudio Connect configuration (using pattern:/opt/python/x.x.x/bin/python3).
For the rest of the default variables, see ./defaults/main.yml.
Note: Python will not be enabled if python_versions or rstudio_connect_python_executables is empty list (default behaviour)!
None
---
- hosts: all
roles:
- appsilon.rstudio_connectExample of installing and configuring Python (this role + ansible-python-install)
---
- hosts: all
become: true
vars:
python_versions:
- 3.10.6
- 3.7.8
- 3.8.6
rstudio_connect_install:
- r-base
roles:
- appsilon.python_install
- appsilon.rstudio_connectMIT
Oleksandr Ponomarov. Inspired by (aka shamelessly stolen from) ansible-rstudio-server.