1
0
Fork 0

Find and fetch publications

This commit is contained in:
Alex Kotov 2020-03-29 17:38:25 +05:00
parent b8026c5c78
commit 852c2f8de2
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

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