30 lines
699 B
YAML
30 lines
699 B
YAML
---
|
|
- name: Install git for MacOS
|
|
community.general.homebrew:
|
|
name: git
|
|
state: preset
|
|
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
|
|
community.general.pacman:
|
|
name: git
|
|
state: present
|
|
when: ansible_facts.distribution == 'Archlinux'
|