Updates to Bigboot ReaR based on updates to ReaR
This commit is contained in:
parent
212a686c90
commit
0cc014824c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user