Install Ruby 2.2, 2.3, 2.4 or 2.5 on CentOS 7. The role utilizes Red Hat software collections.
After running the role, the selected version of Ruby will be enabled for new login shell. If you are already logged onto the server, you will not see updated Ruby version. Logout and log back in and you will see newer Ruby version.
ruby --version
None. We recommend using the role CentOS Base to enable EPEL.
Variable | Default Value | Description | Required? |
---|---|---|---|
ruby_version | 2.4 | Ruby version | No |
ruby_install_globally | true | Whether to enable the designated Ruby version to all users | No |
ruby_enable_users | [] | Enable the designated Ruby version to specified users | No |
None. We recommend using the role CentOS Base.
- hosts: servers
vars:
ruby_version: 2.3
roles:
- bngsudheer.ruby
BSD
Sudheer Satyanarayana.