From 33f3a85de09bc32bd317da0b2db61345962c9669 Mon Sep 17 00:00:00 2001 From: Arky Date: Sun, 23 Sep 2018 12:17:26 +0700 Subject: [PATCH] Refactor: Run kolibri migrations task Run kolibri migrations as part of the kolibri setup itself. This makes kolibri.service initial run faster on low-end Raspberry Pi devices. "Unable to start service kolibri: Job for kolibri.service failed because a timeout was exceeded." #1158 https://github.com/iiab/iiab/issues/1158 --- roles/kolibri/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kolibri/tasks/main.yml b/roles/kolibri/tasks/main.yml index b2526b4be..ab04f2832 100644 --- a/roles/kolibri/tasks/main.yml +++ b/roles/kolibri/tasks/main.yml @@ -29,8 +29,8 @@ extra_args: --no-cache-dir when: internet_available -- name: Set kolibri default language - shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}" +- name: Run kolibri migrations + shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate ignore_errors: yes when: kolibri_provision