More restore tweaks; need to backup things to test
This commit is contained in:
parent
be4aa9282e
commit
73a2e22c1e
@ -38,6 +38,22 @@
|
||||
src: "/root/etc-rear-backup-{{ rear_backup_workflow }}.tar.gz"
|
||||
dest: /tmp/unarchive
|
||||
|
||||
- name: Copy local.cfg from backup into /etc/rear
|
||||
ansible.builtin.copy:
|
||||
src: /tmp/unarchive/rear/local.conf
|
||||
dest: /etc/rear/local.conf
|
||||
remote_src: true
|
||||
mode: "0600"
|
||||
|
||||
- name: Rebuild ReaR initrd
|
||||
ansible.builtin.command:
|
||||
cmd: rear -d -v mkrescue
|
||||
register: rear_initrd_cmd
|
||||
|
||||
- name: Cleanup leftover artifacts
|
||||
ansible.builtin.file:
|
||||
path: /tmp/unarchive
|
||||
|
||||
# - name: Import rear_vars role
|
||||
# ansible.builtin.import_role:
|
||||
# name: rhc.rear.rear_vars
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Restore the server using ReaR backup
|
||||
ansible.builtin.command: "grub2-reboot 'Relax-and-Recover *** RESTORES RHEL7 ***'"
|
||||
ansible.builtin.command: "grub2-reboot 'Relax-and-Recover {{ rear_vars_grub_label }}'"
|
||||
|
||||
- name: Reboot host
|
||||
ansible.builtin.import_role:
|
||||
|
Loading…
x
Reference in New Issue
Block a user