From 0cc014824c2884260afe4178e1232c5c2d78969b Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 4 Mar 2025 15:32:18 -0500 Subject: [PATCH] Updates to Bigboot ReaR based on updates to ReaR --- bigboot_rear_backup.yml | 44 ++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/bigboot_rear_backup.yml b/bigboot_rear_backup.yml index 60aab41..a1be88c 100644 --- a/bigboot_rear_backup.yml +++ b/bigboot_rear_backup.yml @@ -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