klips/ansible/plays/hexo-backup.yml

14 lines
312 B
YAML
Raw Normal View History

---
2020-06-12 04:35:55 +00:00
- hosts: dev
become: yes
tasks:
- name: Backup Hexo files
archive:
path: /home/hexouser/blogsite
dest: /home/hexouser/blogsite.tgz
- name: Fetching backup files
fetch:
src: /home/hexouser/blogsite.tgz
dest: /home/ansibleuser/backups/
flat: yes