mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
23 lines
666 B
YAML
23 lines
666 B
YAML
---
|
|
- name: "include docker-central-database"
|
|
include_role:
|
|
name: docker-central-database
|
|
|
|
- name: "include create-domains.yml"
|
|
include_tasks: create-domains.yml
|
|
loop: "{{ [domain] + domains.mastodon_alternates }}"
|
|
loop_control:
|
|
loop_var: domain
|
|
|
|
- name: "copy docker-compose.yml and env file"
|
|
include_tasks: copy-docker-compose-and-env.yml
|
|
|
|
- name: flush docker service
|
|
meta: flush_handlers
|
|
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}}"
|
|
when: applications.mastodon.setup |bool |