author | Luke Hoersten <luke@hoersten.org> |
Sun, 05 Feb 2023 11:01:26 -0600 | |
changeset 208 | 88a7fee5effe |
parent 171 | 534b247bed1c |
permissions | -rw-r--r-- |
17 | 1 |
--- |
2 |
||
3 |
- name: reload service |
|
4 |
become: yes |
|
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 | 7 |
- name: restart service |
8 |
become: yes |
|
9 |
systemd: name="writefreely@{{writefreely_instance}}.service" state="restarted" enabled="yes" daemon_reload="yes" |
|
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}}/" |