How do you install a specific version of Ruby on CentOS 7?
The answer: via SCL.
The Ansible role bngsudheer.ruby makes it even more easier.
Create the file ruby_playbook.yml and insert the following contents:
- hosts: my_ruby_servers vars: ruby_version: 2.3 roles: - bngsudheer.ruby
Once done, run the Ansible playbook:
What if I want to install Ruby 2.4 on CentOS?
2.4. Similarly, if you want to install Ruby
It is also possible to enable particular version of Ruby on a per-user basis. For example, to enable Ruby 2.5 for the user
myproject user, set