restic: Fix extensions to yaml

This commit is contained in:
Marty Oehme 2025-07-18 21:36:38 +02:00
parent 945868feff
commit 412054e3cd
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 0 additions and 0 deletions

View 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