2022-11-15 11:56:48 +01:00
|
|
|
---
|
2025-02-04 18:14:37 +01:00
|
|
|
- name: "include docker-central-database"
|
|
|
|
include_role:
|
|
|
|
name: docker-central-database
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2025-02-21 08:59:07 +01:00
|
|
|
- name: "include create-domains.yml for mastodon"
|
2023-12-12 01:44:37 +01:00
|
|
|
include_tasks: create-domains.yml
|
2025-02-21 08:59:07 +01:00
|
|
|
loop: "{{ [domains.mastodon] + domains.mastodon_alternates }}"
|
2023-12-12 01:44:37 +01:00
|
|
|
loop_control:
|
|
|
|
loop_var: domain
|
2025-02-21 08:59:07 +01:00
|
|
|
vars:
|
2025-02-21 09:36:00 +01:00
|
|
|
http_port: "{{ 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
|
2024-01-04 20:57:02 +01:00
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
- name: flush docker service
|
|
|
|
meta: flush_handlers
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.mastodon.setup |bool
|
2024-01-05 23:13:46 +01:00
|
|
|
|
|
|
|
- name: setup routine for mastodon
|
2024-01-04 20:57:02 +01:00
|
|
|
command:
|
|
|
|
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
|
2025-02-04 18:14:37 +01:00
|
|
|
chdir: "{{docker_compose.directories.instance}}"
|
2025-02-22 12:12:15 +01:00
|
|
|
when: applications.mastodon.setup |bool
|
|
|
|
|
|
|
|
- name: "include create-administrator.yml for mastodon"
|
|
|
|
include_tasks: create-administrator.yml
|