trombik.language-ruby
trombik.language_ruby
Installs ruby, gem, and bundler.
Notes for Debian/Ubuntu
Use
ansible-role-apt-repo
to install
ruby-ng PPA if
the version of the ruby is not in the apt repository.
Requirements
None
Role Variables
| Variable | Description | Default |
|---|---|---|
language_ruby_package |
package name of ruby |
{{ __language_ruby_package }} |
Debian
---
__language_ruby_package: ruby
language_ruby_bundler_package: bundler
language_ruby_gem_package: ''
FreeBSD
---
__language_ruby_package: lang/ruby27
__language_ruby_bundler_package: sysutils/rubygem-bundler
__language_ruby_gem_package: devel/ruby-gems sysutils/rubygem-bundler
OpenBSD
---
__language_ruby_package: ruby%2.7
__language_ruby_bundler_package: ''
__language_ruby_gem_package: ''
RedHat
---
__language_ruby_package: ruby
__language_ruby_bundler_package: rubygem-bundler
__language_ruby_gem_package: ''
Fedora
---
__language_ruby_package: "@ruby:2.7/default"
__language_ruby_bundler_package: rubygem-bundler
__language_ruby_gem_package: ''
Facts
The role sets language_ruby_version fact with the following keys when ruby
version is 2.3.4:
| Key | Value |
|---|---|
full |
2.3.4 |
short |
23 |
major |
2 |
minor |
3 |
patch_level |
4 |
Dependencies
None
Example Playbook
---
- hosts: localhost
roles:
- ansible-role-language_ruby
vars:
ruby_version:
FreeBSD: lang/ruby27
OpenBSD: ruby%2.7
Debian: ruby
RedHat: ruby
language_ruby_package: "{{ ruby_version[ansible_os_family] }}"
License
Copyright (c) 2017 Tomoyuki Sakurai <[email protected]>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author Information
Tomoyuki Sakurai y@trombik.org
This README was created by qansible
Install
ansible-galaxy install trombik.language-rubyLicense
isc
Downloads
76
Owner
PGP finger print: 03EB 3D97 5E04 9B0C AB21 93A2 D693 42A9 EFBC 3577
