From ce40468b776daaa5effdd7bb1933f30feb5aae7c Mon Sep 17 00:00:00 2001 From: Sandwich Date: Fri, 20 Feb 2026 22:27:46 +0100 Subject: [PATCH] fix(bootstrap): use release map for ubuntu version detection --- roles/bootstrap/tasks/ubuntu.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/bootstrap/tasks/ubuntu.yml b/roles/bootstrap/tasks/ubuntu.yml index 0395da2..f0316c2 100644 --- a/roles/bootstrap/tasks/ubuntu.yml +++ b/roles/bootstrap/tasks/ubuntu.yml @@ -1,8 +1,11 @@ --- - name: Bootstrap Ubuntu System vars: - bootstrap_ubuntu_release: >- - {{ 'plucky' if os == 'ubuntu' else 'noble' }} + # ubuntu = latest non-LTS, ubuntu-lts = latest LTS + bootstrap_ubuntu_release_map: + ubuntu: plucky + ubuntu-lts: noble + bootstrap_ubuntu_release: "{{ bootstrap_ubuntu_release_map[os] | default('noble') }}" bootstrap_ubuntu_package_config: >- {{ lookup('vars', bootstrap_var_key)