restic: Fix extensions to yaml
This commit is contained in:
parent
945868feff
commit
412054e3cd
4 changed files with 0 additions and 0 deletions
17
roles/restic/tasks/main.yaml
Normal file
17
roles/restic/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Create local backup directory
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ restic_repo }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0770
|
||||
when: restic_repo is regex('^/.+')
|
||||
|
||||
- name: Deploy restic to compose
|
||||
community.docker.docker_compose_v2:
|
||||
project_name: restic
|
||||
definition: "{{ lookup('template', 'docker-compose.yaml.j2') | from_yaml }}"
|
||||
remove_orphans: true
|
||||
wait: true
|
||||
wait_timeout: 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue