Updates to Bigboot ReaR based on updates to ReaR

This commit is contained in:
Chris Hammer 2025-03-04 15:32:18 -05:00
parent 212a686c90
commit 5925357d90

View File

@ -13,26 +13,30 @@
ansible.builtin.import_role:
name: rhc.rear.rear_vars
- name: Fetch the template name from NFS exports
ansible.builtin.set_fact:
job_template_name: "{{ nfs_exports_template_name }}"
- name: Debug rear_vars_nfs_share
ansible.builtin.debug:
var: rear_vars_nfs_share
- name: Check for previous backup completion
ansible.builtin.stat:
path: "{{ rear_backup_success_file_path }}/{{ rear_backup_workflow }}_rear_success"
register: rear_backup_success_file
# - name: Fetch the template name from NFS exports
# ansible.builtin.set_fact:
# job_template_name: "{{ nfs_exports_template_name }}"
- name: End if backup has already completed successfully
ansible.builtin.meta: end_host
when:
- rear_backup_success_file['stat']['exists'] | bool
- not rear_force_backup | default(false) | bool
# - name: Check for previous backup completion
# ansible.builtin.stat:
# path: "{{ rear_backup_success_file_path }}/{{ rear_backup_workflow }}_rear_success"
# register: rear_backup_success_file
- name: Perform ReaR Backup
when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool
- not rear_backup_skip | default(false) | bool
block:
- name: Perform ReaR backup
ansible.builtin.include_role:
name: rhc.rear.rear_backup
# - name: End if backup has already completed successfully
# ansible.builtin.meta: end_host
# when:
# - rear_backup_success_file['stat']['exists'] | bool
# - not rear_force_backup | default(false) | bool
# - name: Perform ReaR Backup
# when:
# - bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool
# - not rear_backup_skip | default(false) | bool
# block:
# - name: Perform ReaR backup
# ansible.builtin.include_role:
# name: rhc.rear.rear_backup