feat: add ruby installer

This commit is contained in:
Price Hiller 2022-08-02 21:29:15 -05:00
parent c9e15070fd
commit c375acefad

24
tasks/install-ruby.yml Normal file
View File

@ -0,0 +1,24 @@
---
- name: Install Ruby for Debian based Systems
ansible.builtin.apt:
name: ruby-full
state: present
when: ansible_facts.os_family == 'Debian'
- name: Install Ruby for RedHat based systems
ansible.builtin.dnf:
name: ruby
state: present
when: ansible_facts.os_family == 'RedHat'
- name: Install Ruby for Arch
community.general.pacman:
name: ruby
state: present
when: ansible_facts.distribution == 'Archlinux'
- name: Install Ruby for MacOS
community.general.homebrew:
name: ruby
state: present
when: ansible_facts.distribution == 'Ruby'