--- - name: Capture boot and logical volume information hosts: all become: true gather_facts: true strategy: free tasks: - name: Debug bigboot_execute_shrink_lv ansible.builtin.debug: msg: "bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] -> {{ bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] }}" - name: Debug bigboot_execute_bigboot ansible.builtin.debug: msg: "bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] -> {{ bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] }}" - 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