Updated Nextcloud settings and added cron job
This commit is contained in:
parent
fa1dc4acb7
commit
48216db8f9
@ -29,6 +29,8 @@
|
|||||||
networks:
|
networks:
|
||||||
- name: "{{ nextcloud_container }}"
|
- name: "{{ nextcloud_container }}"
|
||||||
- name: traefik
|
- name: traefik
|
||||||
|
env:
|
||||||
|
PHP_MEMORY_LIMIT: 1024M
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.nextcloud.rule: "Host(`{{ nextcloud_domain }}`)"
|
traefik.http.routers.nextcloud.rule: "Host(`{{ nextcloud_domain }}`)"
|
||||||
traefik.http.routers.nextcloud.entrypoints: websecure
|
traefik.http.routers.nextcloud.entrypoints: websecure
|
||||||
@ -103,6 +105,13 @@
|
|||||||
- "php occ maintenance:mode --off"
|
- "php occ maintenance:mode --off"
|
||||||
when: nextcloud_install.changed
|
when: nextcloud_install.changed
|
||||||
|
|
||||||
|
- name: Install Nextcloud background jobs cron
|
||||||
|
ansible.builtin.cron:
|
||||||
|
name: Nextcloud background job
|
||||||
|
minute: "*/5"
|
||||||
|
job: "/usr/bin/docker exec -u www-data nextcloud /usr/local/bin/php -f /var/www/html/cron.php"
|
||||||
|
user: root
|
||||||
|
|
||||||
- name: Remove Nextcloud's CAN_INSTALL file
|
- name: Remove Nextcloud's CAN_INSTALL file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ nextcloud_root }}/config/CAN_INSTALL"
|
path: "{{ nextcloud_root }}/config/CAN_INSTALL"
|
||||||
|
Loading…
Reference in New Issue
Block a user