Find and fetch publications
This commit is contained in:
parent
b8026c5c78
commit
852c2f8de2
1 changed files with 11 additions and 0 deletions
|
@ -1,7 +1,18 @@
|
|||
---
|
||||
- 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 }}"
|
||||
|
|
Reference in a new issue