fix playbook

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

View File

@ -1,19 +1,23 @@
--- ---
- 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
- name: ReaR backup per host vars_files:
ansible.builtin.import_role: - bigboot_vars.yml
name: rhc.rear.rear_backup
vars: tasks:
client_ips: "{{ item['value']['bigboot_size'] }}" - name: ReaR backup per host
namehost: "{{ item['key'] }}" ansible.builtin.import_role:
loop: "{{ bigboot_data | dict2items }}" name: rhc.rear.rear_backup
loop_control: vars:
label: "{{ item['key'] }}" client_ips: "{{ item['value']['bigboot_size'] }}"
when: namehost: "{{ item['key'] }}"
- item['value']['bigboot_execute_bigboot'] | bool loop: "{{ bigboot_data | dict2items }}"
loop_control:
label: "{{ item['key'] }}"
when:
- item['value']['bigboot_execute_bigboot'] | bool
- not bigboot_rear_backup_skip | default(false) | bool