Updates
This commit is contained in:
@ -14,10 +14,10 @@
|
||||
paths:
|
||||
- /var/tmp
|
||||
patterns:
|
||||
- rear_restore*
|
||||
- "rear_restore.{{ rear_backup_workflow }}*"
|
||||
register: rear_restore_file
|
||||
|
||||
- name: Check for previous restore and end host if already completed
|
||||
- name: Check for ReaR restore
|
||||
when:
|
||||
- rear_restore_file['files'] | length > 0
|
||||
block:
|
||||
@ -25,8 +25,8 @@
|
||||
ansible.builtin.debug:
|
||||
msg: "ReaR restore was already completed - {{ rear_restore_file['files'] | json_query('[].path') | string }}"
|
||||
|
||||
- name: End host for servers that already completed a ReaR restore
|
||||
ansible.builtin.meta: end_host
|
||||
# - name: End host for servers that already completed a ReaR restore
|
||||
# ansible.builtin.meta: end_host
|
||||
|
||||
- name: Check if configuration backup exists
|
||||
ansible.builtin.stat:
|
||||
@ -56,10 +56,10 @@
|
||||
remote_src: true
|
||||
mode: "0600"
|
||||
|
||||
- name: Rebuild ReaR initrd
|
||||
ansible.builtin.command:
|
||||
cmd: rear -d -v mkrescue
|
||||
register: rear_initrd_cmd
|
||||
# - name: Rebuild ReaR initrd
|
||||
# ansible.builtin.command:
|
||||
# cmd: rear -d -v mkrescue
|
||||
# register: rear_initrd_cmd
|
||||
|
||||
- name: Cleanup leftover artifacts
|
||||
ansible.builtin.file:
|
||||
@ -71,7 +71,7 @@
|
||||
|
||||
- name: Create file for ReaR restore success
|
||||
ansible.builtin.file:
|
||||
path: "/var/tmp/rear_restore.{{ ansible_date_time.iso8601_basic }}"
|
||||
path: "/var/tmp/rear_restore.{{ rear_backup_workflow }}.{{ ansible_date_time.iso8601_basic }}"
|
||||
state: touch
|
||||
mode: "0664"
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
- name: Debug rear_vars_nfs_share
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ rear_vars_nfs_share['standalone']['share'] }} -> {{ rear_vars_nfs_share['standalone']['fsid'] }}"
|
||||
msg: "{{ rear_vars_nfs_base }}/{{ rear_backup_workflow }} ({{ rear_vars_nfs_share[rear_backup_workflow] }})"
|
||||
|
||||
- name: Debug rear_vars_grub_label
|
||||
ansible.builtin.debug:
|
||||
|
Reference in New Issue
Block a user