---
- include_tasks: utils/once/flag.yml
- name: "π Include the front proxy for every {{ application_id }} domain"
include_role:
name: sys-stk-front-proxy
loop: "{{ lookup('domains', application_id) }}"
loop_control:
loop_var: front_proxy_vhost
vars:
domain: "{{ front_proxy_vhost }}"
http_port: "{{ lookup('config', application_id, 'services.peertube.ports.local.http') }}"
websocket_port: "{{ lookup('config', application_id, 'services.peertube.ports.local.http') }}"
- name: "π§© load docker and db for {{ application_id }}"
include_role:
name: sys-stk-backend
vars:
compose_handlers_flush: false
- name: "π Detect the release the existing PeerTube data was written by"
include_tasks: upgrade/detect.yml
when: IS_STACK_HOST | bool
- name: "π³ Finalize compose deploy for '{{ application_id }}'"
include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/finalize.yml') }}"
- name: "βΆοΈ Execute stack host routines"
include_tasks: 01_stack_host.yml
when: IS_STACK_HOST | bool