fix playbook

This commit is contained in:
Chris Hammer 2024-07-26 11:36:17 -04:00
parent 2b31c70a8c
commit 51ba92ecd7

View File

@ -1,11 +1,14 @@
--- ---
- name: Perform a ReaR backup before the /boot expansion - name: Perform logical volume and boot parition resizing as needed
ansible.builtin.import_playbook: rhc.rear.rear_backup hosts: all
when: become: true
- (bigboot_data[inventory_hostname]['bigboot_execute_shrink_lv'] | default(false) | bool gather_facts: true
or bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool) strategy: free
- not bigboot_rear_backup_skip | default(false) | bool
vars_files:
- bigboot_vars.yml
tasks:
- name: ReaR backup per host - name: ReaR backup per host
ansible.builtin.import_role: ansible.builtin.import_role:
name: rhc.rear.rear_backup name: rhc.rear.rear_backup
@ -17,3 +20,4 @@
label: "{{ item['key'] }}" label: "{{ item['key'] }}"
when: when:
- item['value']['bigboot_execute_bigboot'] | bool - item['value']['bigboot_execute_bigboot'] | bool
- not bigboot_rear_backup_skip | default(false) | bool