Update playbooks/borgmatic-backup.yml
This commit is contained in:
@@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
- name: Split offset into minutes and seconds
|
- name: Split offset into minutes and seconds
|
||||||
set_fact:
|
set_fact:
|
||||||
backup_offset_minutes: "{{ backup_offset // 60 }}"
|
backup_offset_minutes: "{{ backup_offset | int // 60 }}"
|
||||||
backup_offset_seconds: "{{ backup_offset % 60 }}"
|
backup_offset_seconds: "{{ backup_offset | int % 60 }}"
|
||||||
|
|
||||||
- name: Deploy borgmatic config
|
- name: Deploy borgmatic config
|
||||||
template:
|
template:
|
||||||
@@ -53,5 +53,5 @@
|
|||||||
name: "Nightly borgmatic backup"
|
name: "Nightly borgmatic backup"
|
||||||
user: root
|
user: root
|
||||||
hour: "{{ backup_hour }}"
|
hour: "{{ backup_hour }}"
|
||||||
minute: "{{ backup_offset_minutes }}"
|
minute: "{{ backup_offset_minutes | int }}"
|
||||||
job: "sleep {{ backup_offset_seconds }} && {{ borgmatic_bin }} --verbosity 1"
|
job: "sleep {{ backup_offset_seconds | int }} && {{ borgmatic_bin }} --verbosity 1"
|
||||||
|
|||||||
Reference in New Issue
Block a user