Failures will result in cleanup.

This commit is contained in:
Chris Hammer 2025-02-05 15:02:26 -05:00
parent 8e194f9fe5
commit d0888f3737
2 changed files with 13 additions and 0 deletions

View File

@ -57,3 +57,7 @@
name: infra.lvm_snapshots.bigboot name: infra.lvm_snapshots.bigboot
vars: vars:
bigboot_partition_size: "{{ bigboot_size_target }}" bigboot_partition_size: "{{ bigboot_size_target }}"
rescue:
- name: Cleanup from any previous executions
ansible.builtin.import_tasks: tasks/cleanup.yml

View File

@ -0,0 +1,9 @@
---
- name: Validate ReaR backup completion
ansible.builtin.command:
cmd: "grep 'Finished running mkbackup workflow' /var/log/rear/rear-{{ ansible_hostname }}.log"
register: validate_backup_log
- name: Debug validate_backup_log
ansible.builtin.debug:
var: validate_backup_log