Skip to content
Snippets Groups Projects
Commit 95d60868 authored by ynerant's avatar ynerant Committed by ynerant
Browse files

[mailman3] Automatically apply migrations and compress static files


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent ee31feff
No related branches found
No related tags found
Loading
......@@ -41,7 +41,6 @@
# You will need to setup postgres
# sudo -u postgres createuser -P mailman3web
# sudo -u postgres createdb -O mailman3web mailman3web
# Then migrate data: sudo /usr/share/mailman3-web/manage.py migrate
- name: Configure mailman3-web
template:
src: mailman3/mailman-web.py.j2
......@@ -57,6 +56,18 @@
dest: /usr/local/bin/mailman-web
state: link
- name: Migrate Django database
django_manage:
command: migrate
project_path: /usr/share/mailman3-web
notify: Restart mailman3-web
- name: Compress static files
django_manage:
command: compress
project_path: /usr/share/mailman3-web
notify: Restart mailman3-web
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment