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/misc.yml

18 lines
445 B
YAML

---
- hosts: misc.crypto-libertarian.com
tasks:
- name: Find publications
find:
paths: /var/www/pub/
register: publications
- name: Fetch dump of Redis database
fetch:
src: /var/lib/redis/dump.rdb
dest: ../../backups
- name: Fetch publications
fetch:
src: '{{ item }}'
dest: ../../backups
with_items: "{{ publications.files | map(attribute='path') | list }}"