stacktonic.ruby

Ansible Role: Ruby

CI

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.
  • ruby_install_from_source: false

    • By default, this installs Ruby from your package manager (apt or yum). Set to true to install a specific version and adjust ruby_download_url and ruby_version.
  • 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 is true).
  • ruby_version: 2.5.1

    • The Ruby version to install (only used if ruby_install_from_source is true).
  • ruby_source_configure_command: ./configure --enable-shared

    • The command to configure Ruby before installation (only used if ruby_install_from_source is true).
  • 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).

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.

Informazioni sul progetto

Ruby installation for Linux.

Installa
ansible-galaxy install stacktonic.ruby
Licenza
mit
Download
180
Proprietario