mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 22:18:32 +01:00
feat: backup+mail
This commit is contained in:
32
roles/backup-vm/tasks/main.yaml
Normal file
32
roles/backup-vm/tasks/main.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: Install tools
|
||||
apt:
|
||||
pkg:
|
||||
- zip
|
||||
- vdirsyncer
|
||||
|
||||
- name: Copy Backup caldav script
|
||||
copy:
|
||||
src: ths_cal_backup.sh
|
||||
dest: /home/sheppy/ths_cal_backup.sh
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
|
||||
- name: Copy vdirsync config
|
||||
copy:
|
||||
src: vsyncdir.conf
|
||||
dest: /home/sheppy/vsyncdir.conf
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
|
||||
- name: Create backups dir
|
||||
file:
|
||||
path: /home/sheppy/backups/
|
||||
state: directory
|
||||
owner: sheppy
|
||||
group: sheppy
|
||||
|
||||
- name: Clone backup tools
|
||||
git:
|
||||
repo: https://github.com/FAUSheppy/backup-tools
|
||||
dest: /home/sheppy/backups/backup-tools/
|
||||
version: master
|
||||
Reference in New Issue
Block a user