mirror of
https://github.com/status-im/infra-role-postgres-ha.git
synced 2025-02-23 11:58:12 +00:00
29 lines
546 B
YAML
29 lines
546 B
YAML
---
|
|
- 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
|
|
when: postgres_ha_is_master
|
|
with_items: '{{ postgres_ha_databases }}'
|
|
loop_control:
|
|
loop_var: db
|
|
|
|
- import_tasks: consul.yml
|
|
|
|
- import_tasks: backup.yml
|
|
when: postgres_ha_backup
|