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

31 lines
715 B
YAML
Raw Permalink Normal View History

2022-08-01 18:15:50 -05:00
---
- name: Install git for MacOS
community.general.homebrew:
name: git
2022-08-02 16:50:42 -05:00
state: present
2022-08-01 18:15:50 -05:00
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
2022-08-05 15:39:49 -05:00
become: true
2022-08-01 18:15:50 -05:00
community.general.pacman:
name: git
state: present
when: ansible_facts.distribution == 'Archlinux'