writefreely/server/handlers/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 26 Jul 2021 16:08:03 -0500
changeset 175 5b2a3d2cce22
parent 171 534b247bed1c
permissions -rw-r--r--
Changing www root content does not require an nginx reload.

---

- 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}}/"