-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I installed the role and created a simple playbook with it, everything works until the task that creates the backup script.
Everything is posted below. Please help.
Ansible version:
python version = 3.12.3
ansible [core 2.16.3]
jinja version = 3.1.2
Playbook
- name: Backup container data to borgbase everyday at 1:00
hosts: portainer01
become: true
roles:
- roles-ansible.restic
vars_files:
- ./vars/restic.yml
vars:
restic_no_log: false
restic_create_schedule: true
restic_repos:
remote:
location: '{{ restic_repo }}'
password: '{{ restic_repo_password }}'
init: false
restic_backups:
container_data:
name: container_data
repo: remote
src: /data/
scheduled: true
schedule_oncalendar: '*-*-* 01:00:00'Error
TASK [roles-ansible.restic : (BACKUP) Create backup script] fails with error:
Unexpected end of template. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'."}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels