Slight tweaks

This commit is contained in:
2025-02-05 14:53:45 -05:00
parent 46ea789d8c
commit 42f4a94685
5 changed files with 67 additions and 7 deletions

View File

@ -16,16 +16,19 @@
mode: "0600"
- name: ReaR Backup
when:
- rear_force_backup | default(false) | bool
block:
- name: Execute ReaR backup
ansible.builtin.command: rear -d -v mkbackup
changed_when: true
register: rear_mkbackup
- name: ReaR backup success
ansible.builtin.debug:
msg: "ReaR backup has completed successfully."
rescue:
- name: ReaR backup failed
ansible.builtin.debug:
msg: "ReaR backup has failed. Please review the logs for any errors, and try again."
- name: ReaR backup success
ansible.builtin.debug:
msg: "ReaR backup has completed successfully."