Fix variable references

This commit is contained in:
Chris Hammer 2024-08-20 14:36:56 -04:00
parent d41609c832
commit 3b8624fea8
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@
ansible.builtin.import_role: ansible.builtin.import_role:
name: infra.lvm_snapshots.bigboot name: infra.lvm_snapshots.bigboot
vars: vars:
bigboot_size: "{{ bigboot_data[inventory_hostname]['bigboot_size'] }}" bigboot_partition_size: "{{ bigboot_data[inventory_hostname]['bigboot_size'] }}"
when: when:
- bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool - bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool

View File

@ -27,7 +27,7 @@
- name: Set bigboot size 4k aligned - name: Set bigboot size 4k aligned
ansible.builtin.set_fact: ansible.builtin.set_fact:
bigboot_partition_size: "{{ bigboot_size_expansion_mb[:-2] | int | get_block_size_up }}" bigboot_size: "{{ bigboot_size_expansion_mb[:-2] | int | get_block_size_up }}"
- name: Validate if we need to expand boot - name: Validate if we need to expand boot
block: block:
@ -48,4 +48,4 @@
- name: Expansion of /boot required - name: Expansion of /boot required
ansible.builtin.debug: ansible.builtin.debug:
msg: "Will need to expand /boot by an additional {{ bigboot_partition_size }}." msg: "Will need to expand /boot by an additional {{ bigboot_size }}."