writefreely/handlers/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 16 May 2020 10:07:24 -0500
changeset 26 b0e4ad2f4291
parent 17 41034ea52480
permissions -rw-r--r--
Fix writefreely role to be idempotent.

---

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