stacktonic.ruby
Ansible Role: Ruby
This role installs Ruby and the Bundler gem on Linux systems.
Requirements
No specific requirements are needed.
Role Variables
Here are the variables you can use, along with their default settings (found in defaults/main.yml
):
workspace
:/root
- This is the folder where temporary files will be downloaded for Ruby installation.
ruby_install_bundler
:true
- Indicates if Bundler should be installed (see Bundler).
ruby_install_gems
:[]
- A list of Ruby gems to be installed by name. This is for convenience, and it installs the latest version. For specific options, use other parts of your playbook.
ruby_install_gems_user
:username
- The user account that will install Ruby gems. It defaults to the
ansible_ssh_user
if not specified.
- The user account that will install Ruby gems. It defaults to the
ruby_install_from_source
:false
- By default, this installs Ruby from your package manager (
apt
oryum
). Set totrue
to install a specific version and adjustruby_download_url
andruby_version
.
- By default, this installs Ruby from your package manager (
ruby_download_url
:http://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.4.4.tar.gz
- The URL for downloading Ruby (only used if
ruby_install_from_source
istrue
).
- The URL for downloading Ruby (only used if
ruby_version
:2.5.1
- The Ruby version to install (only used if
ruby_install_from_source
istrue
).
- The Ruby version to install (only used if
ruby_source_configure_command
:./configure --enable-shared
- The command to configure Ruby before installation (only used if
ruby_install_from_source
istrue
).
- The command to configure Ruby before installation (only used if
ruby_rubygems_package_name
:rubygems
- The package name for Rubygems. Generally, the default works, but it will switch to
rubygems-integration
on Ubuntu Trusty (14.04).
- The package name for Rubygems. Generally, the default works, but it will switch to
Dependencies
There are no dependencies.
Example Playbook
- hosts: server
roles:
- role: geerlingguy.ruby
License
This project is licensed under MIT / BSD.
Author Information
This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.
Installa
ansible-galaxy install stacktonic.ruby
Licenza
mit
Download
180
Proprietario