writefreely/server/handlers/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 03 Jan 2025 19:36:28 -0600
changeset 240 e3ccc65cecc9
parent 171 534b247bed1c
permissions -rw-r--r--
Version updates and fixed excessive logging on web server.

---

- name: reload service
  become: yes
  systemd: name="writefreely@{{writefreely_instance}}.service" enabled="yes" daemon_reload="yes"

- name: restart service
  become: yes
  systemd: name="writefreely@{{writefreely_instance}}.service" state="restarted" enabled="yes" daemon_reload="yes"

- name: migrate db
  become: yes
  become_user: "{{writefreely_user}}"
  command: "writefreely db migrate"
  args:
    chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"