---
# Git playbook

- name: Install git package
  dnf:
    name: git
    state: latest

- name: Configure git package
  template:
    src: gitconfig
    dest: "{{ home_dir }}/.gitconfig"
    owner: "{{ user }}"
    group: "{{ group }}"
    mode: 0600

- name: Create repositories directory
  file:
    path: "{{ git.repo_dir }}"
    state: directory

---
# Git playbook

- name: Install git package
  dnf:
    name: git
    state: latest

- name: Configure git package
  template:
    src: gitconfig
    dest: "{{ home_dir }}/.gitconfig"
    owner: "{{ user }}"
    group: "{{ group }}"
    mode: 0600

- name: Create repositories directory
  file:
    path: "{{ git.repo_dir }}"
    state: directory
    owner: "{{ user }}"
    group: "{{ group }}"
    mode: 0750

Correct repos folder owner and rights
Correct repos folder owner and rights
