feat(mastodon): add ansible role for deployment

This commit is contained in:
2022-04-23 18:02:30 +02:00
parent 1fe954197f
commit 327943d96a
5 changed files with 307 additions and 0 deletions

View File

@ -0,0 +1,26 @@
---
- name: Restart mastodon sidekiq
docker_container:
name: "{{ mastodon_container_name_sidekiq }}"
state: started
restart: true
listen:
- restart-mastodon
- restart-mastodon-sidekiq
- name: Restart mastodon streaming
docker_container:
name: "{{ mastodon_container_name_streaming }}"
state: started
restart: true
listen:
- restart-mastodon
- restart-mastodon-streaming
- name: Restart mastodon web
docker_container:
name: "{{ mastodon_container_name }}"
state: started
restart: true
listen: restart-mastodon