---
- include_tasks: utils/once/flag.yml
- name: "π§© load docker, db and proxy for {{ application_id }}"
include_role:
name: sys-stk-full
vars:
compose_handlers_flush: false
- name: "π Stage the settings override that serves Weblate on every network sibling"
ansible.builtin.include_tasks:
file: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/render_replicated_templates.yml') }}"
vars:
role_templates:
- src: "{{ lookup('path_absolute', 'roles/web-app-weblate/files/python/settings_override.py') }}"
dest: "{{ WEBLATE_SETTINGS_OVERRIDE_HOST }}"
mode: "0644"
notify: ["compose-up"]
- src: "{{ lookup('path_absolute', 'roles/web-app-weblate/files/python/weblate_network/strategy.py') }}"
dest: "{{ WEBLATE_NETWORK_STRATEGY_HOST }}"
mode: "0644"
notify: ["compose-up"]
- src: "{{ lookup('path_absolute', 'roles/web-app-weblate/files/python/weblate_network/middleware.py') }}"
dest: "{{ WEBLATE_NETWORK_MIDDLEWARE_HOST }}"
mode: "0644"
notify: ["compose-up"]
- name: "πΏ Flush handlers so Weblate starts with the settings override mounted"
meta: flush_handlers
- name: "π Hand the gateway the token it reads the memory with"
ansible.builtin.include_tasks: utils/token.yml
when: IS_STACK_HOST | bool