create directory for the active_branches cache

This commit is contained in:
Ralph Bean 2017-12-15 15:03:33 +00:00
parent e0534e11b0
commit 3a63cd771e

View file

@ -50,6 +50,12 @@
- pdc
- cron
- name: create directory for the active_branches cache
file: path=/var/www/html/extras/ state=directory owner=apache group=apache
tags:
- pdc
- cron
- name: cron to generate cache of active component branches for pagure-sync-bugzilla
cron: name="export-branches" minute="15" user="apache"
job="/usr/local/bin/lock-wrapper export-branches 'python /usr/lib/python2.7/site-packages/pdc/manage.py exportbranches > /var/www/html/extras/active_branches.json.tmp; mv /var/www/html/extras/active_branches.json.tmp /var/www/html/extras/active_branches.json'"