{"id":18783610,"url":"https://github.com/cimon-io/ansible-role-ruby","last_synced_at":"2026-04-21T05:32:09.061Z","repository":{"id":66296915,"uuid":"109794645","full_name":"cimon-io/ansible-role-ruby","owner":"cimon-io","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-20T07:56:36.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-01T11:04:43.560Z","etag":null,"topics":["ansible","ansible-role","rbenv","ruby"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cimon-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-07T06:14:55.000Z","updated_at":"2019-11-20T07:56:38.000Z","dependencies_parsed_at":"2023-03-22T10:18:10.591Z","dependency_job_id":null,"html_url":"https://github.com/cimon-io/ansible-role-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cimon-io/ansible-role-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fansible-role-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fansible-role-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fansible-role-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fansible-role-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cimon-io","download_url":"https://codeload.github.com/cimon-io/ansible-role-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fansible-role-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262950293,"owners_count":23389638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","rbenv","ruby"],"created_at":"2024-11-07T20:39:53.144Z","updated_at":"2026-04-21T05:32:04.011Z","avatar_url":"https://github.com/cimon-io.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible ruby role\n\nAn ansible role that installs and configures Ruby with rbenv.\n\nThe role includes the following tasks:\n\n1. Install necessary ruby dependencies specified by the `ruby_software_dependencies` variable.\n2. Install/update rbenv as `ruby_user` at `$HOME/.rbenv`.\n3. Install ruby-build plugin at `$HOME/.rbenv/plugins`.\n4. Append rbenv bin to the PATH variable.\n5. Initiate rbenv for ssh sessions.\n6. Install ruby versions listed in the `ruby_versions` variable. Set the required `ruby_global_version` as global.\n7. Install/update RubyGems.\n\nThis role can be run under all versions of Ubuntu and Debian.\n\n## Requirements\n\nNone\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n```yaml\nruby_user: deploy    # A user for whom ruby is installed\nruby_group: deploy   # The user name and group must be present in the system\n```\n\nSpecify rbenv and ruby versions which should be installed:\n\n```yaml\nruby_rbenv_version: \"v1.1.2\"  # rbenv version\nruby_versions:                # list of ruby versions\n  - \"2.6.4\"\n```\n\nThe first of the requested ruby versions (if there is any) will be set as global:\n\n```yaml\nruby_global_version: \"{{ ruby_versions[0] | default('') }}\"\n\nruby_global_gems: []    # list of ruby global gems to install\n```\n\nAll necessary dependencies and other variables are specified at `vars/main`:\n\n```yaml\nansible_become: yes\n\napt_cache_valid_time: 86400\n\nruby_software_dependencies:\n  - build-essential\n  - libcurl4-openssl-dev\n  - libmysqlclient-dev\n  - libreadline-dev\n  - libreadline6-dev\n  - libssl-dev\n  - libxml2-dev\n  - libxslt1-dev\n  - zlib1g-dev\n  - libmagickwand-dev\n```\n\n## Dependencies\n\n - Role: [users]() - an ansible role for managing user and group accounts. A list of `users_accounts` must include a user with a name and a group equal to `ruby_user` and `ruby_group` variables respectively.\n\n## Example Playbook\n\nA playbook example:\n\n```yaml\n- hosts: web\n  roles:\n    - role: ruby\n      ruby_versions:\n        - \"2.6.3\"\n        - \"2.6.4\"\n```\n\nAn example of variables:\n\n```yaml\nruby_user: developer           # A user under whom the role is run\nruby_group: developer          # The user name and group must be present in the system\nruby_versions: [\"2.5.3\", \"2.6.4\"]  # Ruby version which will be installed\n```\n\n## License\n\nLicensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimon-io%2Fansible-role-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcimon-io%2Fansible-role-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimon-io%2Fansible-role-ruby/lists"}