feat: add ruby installer
This commit is contained in:
parent
c9e15070fd
commit
c375acefad
24
tasks/install-ruby.yml
Normal file
24
tasks/install-ruby.yml
Normal 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'
|
Loading…
Reference in New Issue
Block a user