Slight tweaks
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
---
|
||||
rear_nfs_srv: "10.10.42.180/backups"
|
||||
|
||||
rear_backup_success_file: /var/log/IPE/IPU/bigboot_success
|
||||
|
||||
# rear_backup_initrd_modules_exclude:
|
||||
# - scsi_debug
|
||||
# - falcon_lsm_serviceable
|
||||
|
@ -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."
|
||||
|
Reference in New Issue
Block a user