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.
None.
Available variables are listed below (located in defaults/main.yml
):
ruby_app_debian_package: ruby-full
ruby_app_el_package: ruby
ruby_desired_state: present
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 . |
None
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
This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who loves to learn and contribute to Open Source community.