fix playbook workflow
This commit is contained in:
@ -31,16 +31,21 @@
|
||||
|
||||
- name: Validate if we need to expand boot
|
||||
block:
|
||||
- name: Set flag for Bigboot execution
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_execute_bigboot: false
|
||||
|
||||
- name: Assert that /boot requires expansion
|
||||
ansible.builtin.assert:
|
||||
that: bigboot_expansion_diff | int <= 0
|
||||
fail_msg: The /boot partition will need to be resized
|
||||
success_msg: The /boot partition is already at the desired size
|
||||
|
||||
- name: The /boot parition is already at the desired size.
|
||||
ansible.builtin.meta: end_host
|
||||
|
||||
rescue:
|
||||
- name: Set flag for Bigboot execution
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_execute_bigboot: true
|
||||
|
||||
- name: Expansion of /boot required
|
||||
ansible.builtin.debug:
|
||||
msg: "Will need to expand /boot by an additional {{ bigboot_size }}."
|
||||
|
Reference in New Issue
Block a user