25 lines
752 B
YAML
Raw Normal View History

2022-11-15 11:56:48 +01:00
---
- name: "include docker-central-database"
include_role:
name: docker-central-database
- name: "include create-domains.yml for mastodon"
2023-12-12 01:44:37 +01:00
include_tasks: create-domains.yml
loop: "{{ [domains.mastodon] + domains.mastodon_alternates }}"
2023-12-12 01:44:37 +01:00
loop_control:
loop_var: domain
vars:
http: "{{ ports.localhost.http[application_id] }}"
2022-11-15 11:56:48 +01:00
2025-02-06 23:59:53 +01:00
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml
- name: flush docker service
meta: flush_handlers
2025-02-19 03:46:25 +01:00
when: applications.mastodon.setup |bool
- name: setup routine for mastodon
command:
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
chdir: "{{docker_compose.directories.instance}}"
2025-02-19 03:46:25 +01:00
when: applications.mastodon.setup |bool