Dot_Files/roles/git/tasks/install-git.yml

31 lines
715 B
YAML

---
- name: Install git for MacOS
community.general.homebrew:
name: git
state: present
when: ansible_facts.distribution == 'MacOSX'
- name: Install git for Debian based systems
become: true
ansible.builtin.apt:
name: git
state: present
when: ansible_facts.os_family == 'Debian'
- name: Enable EPL for RedHat based systems
ansible.builtin.import_tasks: enable-epel.yml
- name: Install git for RedHat based systems
become: true
ansible.builtin.dnf:
name: git
state: present
when: ansible_facts.os_family == 'RedHat'
- name: Install git for Arch
become: true
community.general.pacman:
name: git
state: present
when: ansible_facts.distribution == 'Archlinux'