Add Owncloud cron

certbot_on_virtu
Alexandre Iooss 2020-04-11 14:26:31 +02:00
parent 04a7dcfedd
commit 017374d20d
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,9 @@
name:
- nginx
- owncloud-files
- redis-server
- php-redis
- php-apcu
register: apt_result
retries: 3
until: apt_result is succeeded
@ -38,6 +41,11 @@
state: link
notify: Restart nginx
- name: Copy OwnCloud cron
template:
src: cron.d/owncloud.j2
dest: /etc/cron.d/owncloud
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2

View File

@ -0,0 +1,2 @@
# {{ ansible_managed }}
*/15 * * * * www-data /usr/bin/php /var/www/owncloud/occ system:cron > /dev/null 2>&1