refactor
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user