blob: 5b39bf07c551fd54509842c7c374998f90f5c46e (
plain)
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
26
27
28
29
30
|
---
- yum: name={{ item }} state=installed
with_items:
- ansible
- 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 }} state=directory
with_items:
- public
- private
- shell: creates={{ git_repositories_dir }}/{{ item }}/config chdir={{ git_repositories_dir }}/{{ item }} git init --bare -q --shared=group
with_items:
- public
- private
- copy: dest={{ git_repositories_dir }}/{{ item }}/hooks/post-receive src=post-receive.{{ item }}.sh mode=0755
with_items:
- public
- private
- copy: src={{ item }} dest=/usr/local/bin/{{ item }} mode=0755
with_items:
- ansible_run.sh
- cron: name="ansible run" job="/usr/local/bin/ansible_run.sh" minute=*/30
|