1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-ansible/playbooks/backup/postgres.yml

14 lines
339 B
YAML
Raw Normal View History

2020-07-05 05:52:08 -04:00
---
2020-07-05 06:01:46 -04:00
- hosts: postgres
2020-07-05 05:52:08 -04:00
tasks:
- name: Find PostgreSQL dumps
find:
paths: '{{ postgresql_backups_dir }}'
2020-07-05 05:52:08 -04:00
register: postgresql_dumps
- name: Fetch PostgreSQL dumps
fetch:
src: '{{ item }}'
dest: ../../backups
with_items: "{{ postgresql_dumps.files | map(attribute='path') | list }}"