Dot_Files/tasks/install-ruby.yml

25 lines
588 B
YAML

---
- 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'