shrink_lv/bigboot_rear_backup.yml

23 lines
939 B
YAML

---
- 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 before the /boot expansion
ansible.builtin.import_playbook: rhc.rear.rear_backup
when:
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | default(false) | bool
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool)
- not bigboot_rear_backup_skip | default(false) | bool