Skip to content
Snippets Groups Projects
Verified Commit a1e0e35d authored by me5na7qbjqbrp's avatar me5na7qbjqbrp
Browse files

Add moinmoin crons

parent fdb2675d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
{{ 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment