darkwizard242.ruby

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: ruby

Role to install ruby package on Debian/Ubuntu and EL systems. These are the default versions available in repositories and may change based on whatever is available on the default OS repositories.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables list:

ruby_app_debian_package: ruby-full
ruby_app_el_package: ruby
ruby_desired_state: present

Variables table:

Variable Description
ruby_app_debian_package Defines the app to install on Debian based systems i.e. ruby-full
ruby_app_el_package Defines the app to install on Enterprise Linux (Redhat/CentOS) systems i.e. ruby
ruby_desired_state Defined to dynamically chose whether to install (i.e. either present or latest) or uninstall (i.e. absent) the package. Defaults to present.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of ruby package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.ruby

For customizing behavior of role (i.e. installation of latest ruby package instead of ensure it is installed ) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.ruby
  vars:
    ruby_desired_state: latest

For customizing behavior of role (i.e. installation of ruby package in regards to EL systems) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.ruby
  vars:
    ruby_app_el_package: ruby

License

MIT

Author Information

This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who loves to learn and contribute to Open Source community.

About

Role for dynamically installing or uninstalling ruby on Debian and EL based systems.

Install
ansible-galaxy install darkwizard242.ruby
GitHub repository
License
mit
Downloads
4.9k
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!