Add cronjobs for pulling taskotron task repos
This commit is contained in:
parent
d247aec18d
commit
e77be00da9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue