summaryrefslogtreecommitdiffstats
path: root/roles/local_deploy/tasks/main.yml
blob: b6f466e6840abd7be31a52f9682a60d1af4f60a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- yum: name={{ item }} state=installed
  with_items:
  - ansible
  - git

- shell: creates=/srv/git_repos/{{ item }}/config chdir=/srv/git_repos/{{ item }} git init --bare -q --shared=group
  with_items:
  - public
  - private

- copy: dest=/srv/git_repos/{{ 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