From 6c20ca25347a300143d9c8a0e5ec8ea88cb36814 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Fri, 19 Mar 2021 20:23:47 +0100 Subject: [PATCH] [constellation] Do some manage.py stuff Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- roles/constellation-front/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/constellation-front/tasks/main.yml b/roles/constellation-front/tasks/main.yml index def0444c..03d700dc 100644 --- a/roles/constellation-front/tasks/main.yml +++ b/roles/constellation-front/tasks/main.yml @@ -28,3 +28,18 @@ state: link ignore_errors: "{{ ansible_check_mode }}" notify: Reload uWSGI + +- name: Collect static files + django_manage: + command: collectstatic + project_path: "/var/local/constellation" + +- name: Migrate database + django_manage: + command: migrate + project_path: "/var/local/constellation" + +- name: Load initial data + django_manage: + command: loaddata initial + project_path: "/var/local/constellation" -- GitLab