ansible-playbooks/roles/postgres/defaults/main.yml
2025-11-11 11:11:47 +01:00

29 lines
727 B
YAML

---
# PostgreSQL port
postgres_port: 5432
# PostgreSQL admin user (only for database management)
postgres_admin_user: postgres
# PostgreSQL admin password (REQUIRED - must be set explicitly)
# Set via inventory, host_vars, or ansible-vault
# postgres_admin_password: ""
# PostgreSQL data directory
postgres_data_dir: /var/lib/postgres/data
# Binding address(es)
# example: postgres_bind: "127.0.0.1,10.89.0.1"
postgres_bind: "127.0.0.1"
# Firewall configuration
postgres_firewall_allowed_sources:
- 127.0.0.0/8
# Performance tuning (adjust based on your hardware)
postgres_shared_buffers: 256MB
postgres_effective_cache_size: 1GB
postgres_maintenance_work_mem: 64MB
postgres_work_mem: 4MB
postgres_max_connections: 100