Run migrations if the container changed
This commit is contained in:
@@ -6,3 +6,9 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user