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

- 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