This commit is contained in:
2024-07-26 14:12:10 -04:00
parent fd108e2b69
commit d7c73f1a97
4 changed files with 36 additions and 31 deletions

View File

@ -1,23 +1,6 @@
---
- name: Perform logical volume and boot parition resizing as needed
hosts: all
become: true
gather_facts: true
strategy: free
vars_files:
- bigboot_vars.yml
tasks:
- name: ReaR backup per host
ansible.builtin.include_role:
name: rhc.rear.rear_backup
vars:
client_ips: "{{ item['value']['bigboot_size'] }}"
namehost: "{{ item['key'] }}"
loop: "{{ bigboot_data | dict2items }}"
loop_control:
label: "{{ item['key'] }}"
when:
- item['value']['bigboot_execute_bigboot'] | bool
- not bigboot_rear_backup_skip | default(false) | bool
- name: Perform a ReaR backup before the /boot expansion
ansible.builtin.import_playbook: rhc.rear.rear_backup
when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | default(false) | bool
- not bigboot_rear_backup_skip | default(false) | bool