Add cronjobs for pulling taskotron task repos

This commit is contained in:
Martin Krizek 2016-04-15 08:09:38 +00:00
parent d247aec18d
commit e77be00da9

View file

@ -45,3 +45,11 @@
- name: generate grokmirror config
template: src=repos.conf.j2 dest=/etc/grokmirror/repos.conf owner={{ grokmirror_user }} group={{ grokmirror_user }} mode=0644
- name: install cron jobs to update repos
cron:
name="pull repo for {{ item.name }}"
user={{ grokmirror_user }}
special_time=hourly
job="cd {{ grokmirror_basedir }}/{{ item.name }} && git fetch origin {{ grokmirror_default_branch }}:{{ grokmirror_default_branch }}"
with_item: grokmirror_repos