Add Owncloud cron
parent
04a7dcfedd
commit
017374d20d
|
@ -21,6 +21,9 @@
|
||||||
name:
|
name:
|
||||||
- nginx
|
- nginx
|
||||||
- owncloud-files
|
- owncloud-files
|
||||||
|
- redis-server
|
||||||
|
- php-redis
|
||||||
|
- php-apcu
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
until: apt_result is succeeded
|
||||||
|
@ -38,6 +41,11 @@
|
||||||
state: link
|
state: link
|
||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
|
- name: Copy OwnCloud cron
|
||||||
|
template:
|
||||||
|
src: cron.d/owncloud.j2
|
||||||
|
dest: /etc/cron.d/owncloud
|
||||||
|
|
||||||
- name: Indicate role in motd
|
- name: Indicate role in motd
|
||||||
template:
|
template:
|
||||||
src: update-motd.d/05-service.j2
|
src: update-motd.d/05-service.j2
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
*/15 * * * * www-data /usr/bin/php /var/www/owncloud/occ system:cron > /dev/null 2>&1
|
Loading…
Reference in New Issue