25 lines
521 B
YAML
25 lines
521 B
YAML
---
|
|
- name: Configure yttrx mastodon server
|
|
hosts: [mastodon]
|
|
vars:
|
|
install_sidekiq: False
|
|
install_webapp: False
|
|
install_frontend: False
|
|
|
|
roles:
|
|
- role: mastodon
|
|
|
|
- when: install_sidekiq| bool
|
|
role: sidekiq
|
|
- when: install_webapp | bool
|
|
role: webapp
|
|
- when: install_frontend | bool
|
|
role: frontend
|
|
|
|
handlers:
|
|
- name: Re-up docker containers
|
|
command: /usr/local/bin/docker-compose.sh
|
|
args:
|
|
chdir: /home/mastodon/live
|
|
listen: "docker-compose up"
|