blob: e7ee0a492df1ee235c8810b8a248159c182304da (
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
|
---
- yum: name={{ item }} state=installed
with_items:
- ansible
- git
- 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
|