servers/services/cojedzie/tasks/config.yaml
Kacper Donat e11a99cb2a cojedzie: Add ClickHouse for the departure history
Each stack gets its own ClickHouse (2G limit, system logs off, low-memory config) and the schedule worker consumes scheduler_recorder. Next keeps 30 days of history, production 365. Goes live with the move to the bigger instance.
2026-11-01 13:51:26 +01:00

22 lines
511 B
YAML

---
- name: 'Generate env files for "{{ service }}"'
template:
src: "{{ service_path }}/templates/{{ file }}"
dest: "{{ remote_service_path }}/{{ file }}"
tags:
- config
loop_control:
loop_var: file
with_items:
- api.env
- front.env
- sentry.env
- name: 'Copy ClickHouse config for "{{ service }}"'
template:
src: "{{ service_path }}/config/clickhouse.xml"
dest: "{{ remote_service_path }}/config/clickhouse.xml"
register: clickhouse_config
tags:
- config