Alexis Pentori 085e30fd75
backup: adding condition before setting backup
Signed-off-by: Alexis Pentori <alexis@status.im>
2023-11-16 12:40:02 +01:00

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