mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 04:36:40 +00:00
A set_fact run_once: true at role scope in svc-db-postgres/tasks/01_core.yml did not survive the matrix-deploy round split: rounds whose include set did not contain svc-db-postgres failed at template-render time with 'POSTGRES_ALLOWED_AVG_CONNECTIONS' is undefined. - Hoist POSTGRES_VCPUS, POSTGRES_TOTAL_RAM_MB, POSTGRES_MAX_CONNECTIONS, POSTGRES_ALLOWED_AVG_CONNECTIONS, POSTGRES_SUPERUSER_RESERVED_CONNECTIONS, POSTGRES_SHARED_BUFFERS*, POSTGRES_WORK_MEM*, POSTGRES_MAINTENANCE_WORK_MEM*, POSTGRES_DELAY to group_vars/all/17_resource.yml (lazy Jinja evaluation per round). - Drop the set_fact from tasks/01_core.yml; the value is now derived globally on every play. - Relocate the split_postgres_connections filter plugin from roles/svc-db-postgres/filter_plugins/ to plugins/filter/ so it is always loaded via the global filter_plugins = ./plugins/filter declaration in ansible.cfg. - Move the matching unit test from tests/unit/roles/svc-db-postgres/filter_plugins/ to tests/unit/plugins/filter/ to mirror the plugin's new location. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>