more logic fixes
This commit is contained in:
parent
47b9224223
commit
d958c3501f
@ -2,4 +2,6 @@
|
||||
- name: Perform a ReaR backup if any disk modifications are to be made
|
||||
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
||||
when:
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
|
||||
- not bigboot_rear_backup_skip | default(false) | bool
|
||||
|
@ -29,6 +29,10 @@
|
||||
- name: Capture logical volume information
|
||||
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
||||
|
||||
- name: Set ReaR backup flag
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_rear_backup_skip:
|
||||
|
||||
- name: Set environment for subsequent workflow nodes
|
||||
ansible.builtin.set_stats:
|
||||
data:
|
||||
@ -42,10 +46,13 @@
|
||||
'bigboot_size': bigboot_size
|
||||
}
|
||||
}) }}"
|
||||
rear_backup_skip: bigboot_rear_backup_skip | default(false)
|
||||
|
||||
- name: Execute ReaR backup
|
||||
ansible.builtin.include_tasks: bigboot_rear_backup.yml
|
||||
when:
|
||||
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | bool
|
||||
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool)
|
||||
- not bigboot_rear_backup_skip | default(false) | bool
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user