13 lines
339 B
YAML
13 lines
339 B
YAML
---
|
|
- hosts: postgres
|
|
tasks:
|
|
- name: Find PostgreSQL dumps
|
|
find:
|
|
paths: '{{ postgresql_backups_dir }}'
|
|
register: postgresql_dumps
|
|
|
|
- name: Fetch PostgreSQL dumps
|
|
fetch:
|
|
src: '{{ item }}'
|
|
dest: ../../backups
|
|
with_items: "{{ postgresql_dumps.files | map(attribute='path') | list }}"
|