2022-11-24 16:40:41 +01:00
|
|
|
---
|
|
|
|
- import_tasks: config.yml
|
|
|
|
|
|
|
|
- import_tasks: start.yml
|
|
|
|
when: postgres_ha_is_master
|
|
|
|
|
|
|
|
- import_tasks: hba.yml
|
|
|
|
when: postgres_ha_is_master
|
|
|
|
|
|
|
|
- import_tasks: users.yml
|
|
|
|
when: postgres_ha_is_master
|
|
|
|
|
|
|
|
- import_tasks: replica.yml
|
|
|
|
when: not postgres_ha_is_master
|
|
|
|
|
|
|
|
- import_tasks: start.yml
|
|
|
|
when: not postgres_ha_is_master
|
|
|
|
|
|
|
|
- include_tasks: databases.yml
|
2022-12-05 14:01:52 +01:00
|
|
|
when: postgres_ha_is_master
|
2022-11-24 16:40:41 +01:00
|
|
|
with_items: '{{ postgres_ha_databases }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: db
|
2022-11-24 20:43:14 +01:00
|
|
|
|
|
|
|
- import_tasks: consul.yml
|
2023-11-16 10:47:28 +01:00
|
|
|
|
2022-11-24 20:45:42 +01:00
|
|
|
- import_tasks: backup.yml
|
2023-11-16 10:47:28 +01:00
|
|
|
when: postgres_ha_backup
|