fix playbook workflow

This commit is contained in:
2024-03-08 14:22:39 -05:00
parent 7fa8bf1923
commit 70dcc9d3f1
3 changed files with 103 additions and 11 deletions

View File

@ -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 }}."