mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
- Added register, until, retries, and delay to all PostgreSQL-related tasks in 02_init.yml to handle transient 'tuple concurrently updated' and similar errors. - Changed 'when: "{{ postgres_init }}"' to 'when: postgres_init | bool' in main.yml for correct boolean evaluation. - Switched 'role' to 'roles' in postgresql_privs tasks for forward compatibility. - Added postgres_retry_retries and postgres_retry_delay defaults in vars/main.yml to centralize retry configuration. https://chatgpt.com/share/689b2360-a8a4-800f-9acb-6d88d6aa5cb7
13 lines
424 B
YAML
13 lines
424 B
YAML
- block:
|
|
- include_tasks: 01_core.yml
|
|
- include_tasks: utils/run_once.yml
|
|
when: run_once_svc_db_postgres is not defined
|
|
|
|
- include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
|
|
# Necessary because docker handlers are overwritten by condition
|
|
vars:
|
|
handler_role_name: "docker-compose"
|
|
|
|
- name: "Initialize database for '{{ database_name }}'"
|
|
include_tasks: 02_init.yml
|
|
when: postgres_init | bool |