mastodon-systemd role should run earlier as we want to stop services in mastodon-postgresql/tasks/main.yml

This commit is contained in:
staticsafe 2017-11-27 13:24:55 -05:00
parent c13efa8bd4
commit e7b7b1e51b
2 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,12 @@
- postgresql
- postgresql-contrib
- python-psycopg2
- name: Stop any Mastodon services that may be running
systemd: name={{ item }} state=stopped
with_items:
- mastodon-sidekiq
- mastodon-streaming
- mastodon-web
- name: Add Mastodon PostgreSQL database user
postgresql_user:
name: mastodon

View File

@ -5,8 +5,8 @@
- common
- ruby
- mastodon-app
- mastodon-systemd
- mastodon-postgresql
- mastodon-redis
- mastodon-nginx
- mastodon-systemd
- mastodon-config