# 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: 0750