feat(expand_root_lv): new role to grow root LV to fill VG + resize fs

Reclaims the half-disk LV left by the Ubuntu Server autoinstall
template default. Idempotent — no-ops cleanly when there are no free PE
in the VG, and exits the play cleanly on hosts without LVM.

Supports ext4 and xfs. Does not handle partition resize (cloud-utils
growpart) — out of scope for the template fix-up case.

Wired into day1_deploy_honcho.yml ahead of the honcho role so newly
provisioned VMs get the fix-up automatically. Suitable to add to any
day1 playbook by simply listing it before the application role.
This commit is contained in:
JARVIS
2026-05-30 23:03:10 -05:00
parent 4d7766d1b1
commit 9ed7466fd8
5 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
galaxy_info:
role_name: expand_root_lv
author: JARVIS
description: >-
Idempotent role that extends the root LVM logical volume to fill its
volume group and grows the underlying filesystem (ext4 or xfs). Fixes
the half-disk LV that the Ubuntu Server autoinstall template ships
with by default.
license: MIT
min_ansible_version: "2.14"
platforms:
- name: Ubuntu
versions:
- noble
- jammy
galaxy_tags:
- lvm
- cloud-init
- homelab
- storage
dependencies: []