{"id":19569473,"url":"https://github.com/buluma/ansible-role-ruby_gems","last_synced_at":"2026-04-05T21:04:50.687Z","repository":{"id":38233559,"uuid":"466935142","full_name":"buluma/ansible-role-ruby_gems","owner":"buluma","description":"Ansible Role - Ruby Gems","archived":false,"fork":false,"pushed_at":"2024-03-25T16:27:53.000Z","size":135,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T10:28:52.577Z","etag":null,"topics":["ansible","ansible-role","molecule","ruby","ruby-gem","rubygems","tox"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/buluma/ruby_gems","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buluma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"buluma"}},"created_at":"2022-03-07T03:56:30.000Z","updated_at":"2022-06-18T02:34:17.000Z","dependencies_parsed_at":"2023-12-17T13:27:49.764Z","dependency_job_id":"28c996b6-d7f6-4f18-9ada-eb6e2fe84bde","html_url":"https://github.com/buluma/ansible-role-ruby_gems","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/buluma/ansible-role-ruby_gems","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-ruby_gems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-ruby_gems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-ruby_gems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-ruby_gems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buluma","download_url":"https://codeload.github.com/buluma/ansible-role-ruby_gems/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-ruby_gems/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260865910,"owners_count":23074724,"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","molecule","ruby","ruby-gem","rubygems","tox"],"created_at":"2024-11-11T06:09:59.662Z","updated_at":"2026-04-05T21:04:50.669Z","avatar_url":"https://github.com/buluma.png","language":"Shell","funding_links":["https://github.com/sponsors/buluma"],"categories":[],"sub_categories":[],"readme":"# [Ansible role ruby_gems](#ansible-role-ruby_gems)\n\nRuby Gems installation for Linux.\n\n|GitHub|Issues|Pull Requests|Version|Downloads|\n|------|------|-------------|-------|---------|\n|[![github](https://github.com/buluma/ansible-role-ruby_gems/actions/workflows/molecule.yml/badge.svg)](https://github.com/buluma/ansible-role-ruby_gems/actions/workflows/molecule.yml)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-ruby_gems.svg)](https://github.com/buluma/ansible-role-ruby_gems/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-ruby_gems.svg)](https://github.com/buluma/ansible-role-ruby_gems/pulls/)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-ruby_gems.svg)](https://github.com/buluma/ansible-role-ruby_gems/releases/)|[![Ansible Role](https://img.shields.io/ansible/role/d/buluma/ruby_gems)](https://galaxy.ansible.com/ui/standalone/roles/buluma/ruby_gems/documentation)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/buluma/ansible-role-ruby_gems/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  become: true\n  hosts: all\n  post_tasks:\n    - name: Verify Ruby is installed.\n      changed_when: false\n      ansible.builtin.command: ruby --version\n  pre_tasks:\n    - name: Update apt cache.\n      ansible.builtin.apt:\n        update_cache: \"true\"\n        cache_valid_time: \"600\"\n      when: ansible_os_family == 'Debian'\n    - name: Add rubygems bin dir to system-wide $PATH.\n      ansible.builtin.copy:\n        content: PATH=$PATH:{{ ruby_gems_bin_path }}\n        dest: /etc/profile.d/ruby.sh\n        mode: \"0644\"\n    - name: Don't install Bundler on CentOS 7 because of old Ruby version.\n      ansible.builtin.set_fact:\n        ruby_install_bundler: false\n      when:\n        - ansible_os_family == 'RedHat'\n        - ansible_distribution_major_version == '7'\n  roles:\n    - role: buluma.bootstrap\n    - role: buluma.ruby_gems\n  vars:\n    ruby_gems_bin_path: /root/.gem/ruby/bin\n    ruby_install_gems:\n      - json\n    ruby_install_gems_user: root\n```\n\nAlso see a [full explanation and example](https://buluma.github.io/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/buluma/ansible-role-ruby_gems/blob/master/defaults/main.yml):\n\n```yaml\n---\nruby_download_url: \"http://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz\"\nruby_install_bundler: true\nruby_install_from_source: true\nruby_install_gems: []\nruby_install_gems_user: \"{{ ansible_user }}\"\nruby_rubygems_package_name: rubygems\nruby_source_configure_command: ./configure --enable-shared\nruby_version: \"3.0.0\"\nworkspace: /root\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-ruby_gems/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub |\n|-------------|--------|\n|[buluma.bootstrap](https://galaxy.ansible.com/buluma/bootstrap)|[![Build Status GitHub](https://github.com/buluma/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-bootstrap/actions)|\n\n## [Context](#context)\n\nThis role is part of many compatible roles. Have a look at [the documentation of these roles](https://buluma.github.io/) for further information.\n\nHere is an overview of related roles:\n\n![dependencies](https://raw.githubusercontent.com/buluma/ansible-role-ruby_gems/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n\nThe minimum version of Ansible required is 2.4, tests have been done on:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them on [GitHub](https://github.com/buluma/ansible-role-ruby_gems/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/buluma/ansible-role-ruby_gems/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[buluma](https://buluma.github.io/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-ruby_gems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuluma%2Fansible-role-ruby_gems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-ruby_gems/lists"}