feat(restic): Add restic backup maintenance stack
Sets up regular backup maintenance for a restic (S3) backend, and enables global variables for other roles to use for their individual backup. Example found in nextcloud role.
This commit is contained in:
parent
eaeeb4ed6c
commit
135aadf3a0
8 changed files with 139 additions and 19 deletions
11
roles/restic/tasks/main.yml
Normal file
11
roles/restic/tasks/main.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Deploy restic to swarm
|
||||
community.general.docker_stack:
|
||||
name: "{{ stack_name }}"
|
||||
state: present
|
||||
prune: yes
|
||||
compose:
|
||||
- "{{ stack_compose }}"
|
||||
become: true
|
||||
tags:
|
||||
- docker-swarm
|
||||
Loading…
Add table
Add a link
Reference in a new issue