Add moinmoin crons
parent
fdb2675d8d
commit
a1e0e35dca
|
@ -15,7 +15,11 @@
|
|||
template:
|
||||
src: moin/mywiki.py.j2
|
||||
dest: /etc/moin/mywiki.py
|
||||
notify: Restart uwsgi
|
||||
|
||||
- name: Configure MoinMoin cron
|
||||
template:
|
||||
src: cron.d/moinmoin.j2
|
||||
dest: /etc/cron.d/moinmoin
|
||||
|
||||
- name: Configure uwsgi
|
||||
template:
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
{{ ansible_header | comment }}
|
||||
|
||||
# Generate calendars
|
||||
0 * * * * /usr/bin/python /var/local/wiki/data/plugin/action/EventsBDE.py > /var/local/calendrier/bde.ics
|
||||
0 * * * * /usr/bin/python /var/local/wiki/data/plugin/action/EventsCrans.py > /var/local/calendrier/crans.ics
|
||||
0 * * * * /usr/bin/python /var/local/wiki/data/plugin/action/Sports.py > /var/local/calendrier/sports.ics
|
||||
|
||||
# Generate sitemap
|
||||
5 5 * * * /usr/bin/wget "http://wiki.adm.crans.org/PageAccueil?action=sitemap" -O /var/local/moin_htdocs_crans/www-sitemap.xml
|
||||
|
||||
# Cleanup
|
||||
17 3 * * * www-data /usr/bin/find /var/local/wiki/data/cache/__session__ -mtime +30 -delete
|
||||
27 3 * * * www-data /usr/bin/find /var/local/wiki/tickets -mtime +30 -delete
|
Loading…
Reference in New Issue