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

19 lines
445 B
YAML
Raw Normal View History

2020-02-11 06:09:10 -05:00
---
- hosts: misc.crypto-libertarian.com
tasks:
2020-03-29 08:38:25 -04:00
- name: Find publications
find:
paths: /var/www/pub/
register: publications
2020-02-11 06:09:10 -05:00
- name: Fetch dump of Redis database
fetch:
src: /var/lib/redis/dump.rdb
dest: ../../backups
2020-03-29 08:38:25 -04:00
- name: Fetch publications
fetch:
src: '{{ item }}'
dest: ../../backups
with_items: "{{ publications.files | map(attribute='path') | list }}"