writefreely/server/handlers/main.yaml
author Luke Hoersten <luke@hoersten.org>
Wed, 19 Oct 2022 09:17:03 -0500
changeset 196 e07868e39791
parent 171 534b247bed1c
permissions -rw-r--r--
Use apt package for homebridge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
41034ea52480 Completed writefreely role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
41034ea52480 Completed writefreely role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
41034ea52480 Completed writefreely role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: reload service
41034ea52480 Completed writefreely role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
41034ea52480 Completed writefreely role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  systemd: name="writefreely@{{writefreely_instance}}.service" enabled="yes" daemon_reload="yes"
26
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
     6
171
534b247bed1c Fixed writefreely role.
Luke Hoersten <luke@hoersten.org>
parents: 159
diff changeset
     7
- name: restart service
534b247bed1c Fixed writefreely role.
Luke Hoersten <luke@hoersten.org>
parents: 159
diff changeset
     8
  become: yes
534b247bed1c Fixed writefreely role.
Luke Hoersten <luke@hoersten.org>
parents: 159
diff changeset
     9
  systemd: name="writefreely@{{writefreely_instance}}.service" state="restarted" enabled="yes" daemon_reload="yes"
534b247bed1c Fixed writefreely role.
Luke Hoersten <luke@hoersten.org>
parents: 159
diff changeset
    10
26
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    11
- name: migrate db
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    12
  become: yes
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    13
  become_user: "{{writefreely_user}}"
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    14
  command: "writefreely db migrate"
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    15
  args:
b0e4ad2f4291 Fix writefreely role to be idempotent.
Luke Hoersten <luke@hoersten.org>
parents: 17
diff changeset
    16
    chdir: "{{writefreely_dir}}/{{writefreely_instance}}/"