Add plays to backup and install a hexo server

This commit is contained in:
2020-05-23 03:48:26 +00:00
parent 1a3270d012
commit 7557122774
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
- hosts: hexo
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