blob: aa081112c622970648a60a354c010af58de8e210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- yum: name={{ item }} state=installed
with_items:
- git
- command: semanage fcontext -t git_user_content_t -a '{{ git_repositories_dir }}(/.*)?'
- file: path={{ git_repositories_dir }} state=directory
- file:
path: "{{ git_repositories_dir }}/{{ item.name }}"
state: directory
mode: "{% if item.private is defined and item.private %}750{% else %}755{% endif %}"
with_items: git_repositories
- shell: creates={{ git_repositories_dir }}/{{ item.name }}/config chdir={{ git_repositories_dir }}/{{ item.name }} git init --bare -q --shared=group
with_items: git_repositories
|