You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
420 B
YAML
20 lines
420 B
YAML
---
|
|
|
|
### tags:
|
|
### - remove-data
|
|
|
|
- name: "Setup postgres for {{ inventory_hostname }}"
|
|
include_role:
|
|
name: postgres
|
|
tasks_from: _postgres-acls
|
|
when:
|
|
- postgres_backup_state is not defined
|
|
|
|
- name: "Creating/restoring postgres backup"
|
|
include_role:
|
|
name: postgres
|
|
tasks_from: _postgres-backups.yml
|
|
when:
|
|
- postgres_backup_state is defined
|
|
- postgres_backup_state in ['dump', 'restore']
|