add ansible script to perform backup

This commit is contained in:
Pim Kunis 2023-01-15 23:28:17 +01:00
parent b3102f6c97
commit ff8bf15377
2 changed files with 10 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
- name: Create backup
hosts: homeserver
tasks:
- name: Create backup
command:
cmd: systemctl start backup.service