writefreely/handlers/main.yaml
changeset 26 b0e4ad2f4291
parent 17 41034ea52480
--- a/writefreely/handlers/main.yaml	Sat May 16 09:55:46 2020 -0500
+++ b/writefreely/handlers/main.yaml	Sat May 16 10:07:24 2020 -0500
@@ -3,3 +3,10 @@
 - name: reload service
   become: yes
   systemd: name="writefreely@{{writefreely_instance}}.service" enabled="yes" daemon_reload="yes"
+
+- name: migrate db
+  become: yes
+  become_user: "{{writefreely_user}}"
+  command: "writefreely db migrate"
+  args:
+    chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"