aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/tasks/main.yml
blob: 9e8c7c665c2caa889dce19c3421247881dc996c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# git ~~ roles/git/tasks/main.yml
# Init git user and settings

---

- name: create git group
  group:
    name: "{{ git_group }}"
    state: present

- name: create git user
  user:
    name: "{{ git_user }}"
    group: "{{ git_group }}"
    shell: "{{ path_gitshell }}"

- name: create git-only directory
  file:
    path: "{{ git_dir }}"
    owner: "{{ git_user }}"
    group: "{{ git_group }}"
    state: directory
    mode: 0741

remember that computers suck.