summaryrefslogtreecommitdiffstats
path: root/roles/deploy_website/tasks/main.yml
blob: 3111048079762dc4b43651d08e1960cfe1ee39e4 (plain)
1
2
3
4
5
6
7
8
9
10
---
- yum: name={{ item }} state=installed
  with_items:
  - git

- file: dest={{ checkout_dest }} state=directory

- git: repo={{ git_repo }} dest={{ checkout_dest }}

- cron: name="{{ git_repo }} autoupdate" hour=* job="cd {{ checkout_dest }} ; git pull --rebase -q ; cp -f -R {{ subdir }} {{ destination }}"