[constellation] Do some manage.py stuff

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-03-19 20:23:47 +01:00
parent 189167c071
commit 6c20ca2534
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 15 additions and 0 deletions

View File

@ -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"