mirror of
https://github.com/status-im/infra-role-postgres-ha.git
synced 2025-02-23 03:48:20 +00:00
This way when the database is cleared the user is automatically created without the need to run Ansible. Signed-off-by: Jakub Sokołowski <jakub@status.im>
23 lines
407 B
YAML
23 lines
407 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
|
|
|
|
- import_tasks: consul.yml
|
|
|
|
- import_tasks: backup.yml
|
|
when: postgres_ha_backup
|