writefreely/server/handlers/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Sep 2022 14:52:16 -0500
changeset 191 b8a1e1e34d8c
parent 171 534b247bed1c
permissions -rw-r--r--
Tweaked homebridge group management.

---

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