15 lines
379 B
YAML
15 lines
379 B
YAML
#SPDX-License-Identifier: MIT-0
|
|
---
|
|
# handlers file for mastodon
|
|
|
|
- name: Reload systemd user units
|
|
ansible.builtin.systemd_service:
|
|
daemon_reload: true
|
|
scope: user
|
|
|
|
- name: Run mastodon database migrations
|
|
ansible.builtin.command:
|
|
cmd: podman exec mastodon rails db:migrate
|
|
register: mastodon_db_migrate
|
|
changed_when: mastodon_db_migrate.stdout | length > 0
|