From 0244ca03a547857df03a810050025d80a58a3642 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 29 Jan 2020 23:36:14 -0500 Subject: [PATCH] Add database indexes not added automatically --- roles/nextcloud/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 9317db1..db045fc 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -101,6 +101,13 @@ chdir: "{{ nc_dir }}/public_html" creates: "{{ nc_dir }}/public_html/config/config.php" +- name: Add Missing Database Indexes + command: php occ db:add-missing-indices + become_user: www-data + args: + chdir: "{{ nc_dir }}/public_html" + when: nextcloud_install.changed + - name: Add Domain Name to Trusted Domains command: | php occ config:system:set trusted_domains 0 --value={{ nc_domain }}