more logic fixes

This commit is contained in:
Chris Hammer 2024-07-20 00:08:44 -04:00
parent 47b9224223
commit d958c3501f
2 changed files with 9 additions and 0 deletions

View File

@ -2,4 +2,6 @@
- name: Perform a ReaR backup if any disk modifications are to be made - name: Perform a ReaR backup if any disk modifications are to be made
ansible.builtin.import_playbook: rhc.rear.rear_backup ansible.builtin.import_playbook: rhc.rear.rear_backup
when: 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 - not bigboot_rear_backup_skip | default(false) | bool

View File

@ -29,6 +29,10 @@
- name: Capture logical volume information - name: Capture logical volume information
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml 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 - name: Set environment for subsequent workflow nodes
ansible.builtin.set_stats: ansible.builtin.set_stats:
data: data:
@ -42,10 +46,13 @@
'bigboot_size': bigboot_size 'bigboot_size': bigboot_size
} }
}) }}" }) }}"
rear_backup_skip: bigboot_rear_backup_skip | default(false)
- name: Execute ReaR backup - name: Execute ReaR backup
ansible.builtin.include_tasks: bigboot_rear_backup.yml ansible.builtin.include_tasks: bigboot_rear_backup.yml
when: 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 - not bigboot_rear_backup_skip | default(false) | bool