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:
23
ansible/roles/expand_root_lv/meta/main.yml
Normal file
23
ansible/roles/expand_root_lv/meta/main.yml
Normal 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: []
|
||||
Reference in New Issue
Block a user