fixing bigboot_size @ 1G in group_vars/all - override with extra_vars if we want
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Successful in 17s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian11) (push) Successful in 15s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian12) (push) Successful in 14s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora39) (push) Successful in 15s

This commit is contained in:
Chris Hammer 2024-02-15 22:50:09 -05:00
parent a753142f57
commit 3df16e6e47
2 changed files with 9 additions and 4 deletions

View File

@ -4,16 +4,21 @@
become: false become: false
gather_facts: true gather_facts: true
vars:
bigboot_size: "{{ bigboot_size | default(bigboot_size_default) }}"
tasks: tasks:
- name: Debug bigboot_size
ansible.builtin.debug:
var: bigboot_size
- name: Capture boot device details - name: Capture boot device details
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
- name: Shrink a logical volume for /boot expansion if needed - name: Shrink a logical volume for /boot expansion if needed
ansible.builtin.import_tasks: tasks/bigboot_manage_lv.yml ansible.builtin.import_tasks: tasks/bigboot_manage_lv.yml
- name: Debug bigboot_size
ansible.builtin.debug:
var: bigboot_size
- name: Expand the /boot partition as requested - name: Expand the /boot partition as requested
ansible.builtin.import_role: ansible.builtin.import_role:
name: infra.lvm_snapshots.bigboot name: infra.lvm_snapshots.bigboot

View File

@ -1,7 +1,7 @@
--- ---
# Default size for Bigboot if otherwise # Default size for Bigboot if otherwise
# not defined # not defined
bigboot_size_default: 1G bigboot_size: 1G
# We use padding just to ensure there's # We use padding just to ensure there's
# available space to expand /boot to. # available space to expand /boot to.