blob: 9215d53bbada33e634ed59c91839dc98dc90af5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
- 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
- template: src=extract.sudoers dest=/etc/sudoers.d/extract_{{ item }}
with_items:
- public
- private
- copy: src={{ item }} dest=/usr/local/bin/{{ item }} mode=0755
with_items:
- ansible_run.sh
- extract_wrapper.sh
- copy: src=ansible_run.sudoers dest=/etc/sudoers.d/ansible_run
- cron: name="ansible run" job="/usr/local/bin/ansible_run.sh" minute=*/30
|