Make it to where we actually backup. For real...
This commit is contained in:
parent
e23d11048a
commit
46ea789d8c
@ -15,7 +15,17 @@
|
||||
group: root
|
||||
mode: "0600"
|
||||
|
||||
- name: Execute ReaR backup
|
||||
ansible.builtin.command: rear -d -v mkrescue
|
||||
changed_when: true
|
||||
register: rear_mkbackup
|
||||
- name: ReaR Backup
|
||||
block:
|
||||
- name: Execute ReaR backup
|
||||
ansible.builtin.command: rear -d -v mkbackup
|
||||
changed_when: true
|
||||
register: rear_mkbackup
|
||||
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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user