add ansible script to perform backup
This commit is contained in:
parent
b3102f6c97
commit
ff8bf15377
2 changed files with 10 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -40,4 +40,7 @@ seafile:
|
||||||
jitsi:
|
jitsi:
|
||||||
ansible-playbook playbooks/jitsi.yml -i inventory/hosts.yml --ask-vault-pass
|
ansible-playbook playbooks/jitsi.yml -i inventory/hosts.yml --ask-vault-pass
|
||||||
|
|
||||||
|
backup:
|
||||||
|
ansible-playbook playbooks/backup.yml -i inventory/hosts.yml
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
|
|
7
playbooks/backup.yml
Normal file
7
playbooks/backup.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: Create backup
|
||||||
|
hosts: homeserver
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Create backup
|
||||||
|
command:
|
||||||
|
cmd: systemctl start backup.service
|
Reference in a new issue