fix(bootstrap): use release map for ubuntu version detection

This commit is contained in:
2026-02-20 22:27:46 +01:00
parent 4b4fab3c33
commit ce40468b77

View File

@@ -1,8 +1,11 @@
--- ---
- name: Bootstrap Ubuntu System - name: Bootstrap Ubuntu System
vars: vars:
bootstrap_ubuntu_release: >- # ubuntu = latest non-LTS, ubuntu-lts = latest LTS
{{ 'plucky' if os == 'ubuntu' else 'noble' }} bootstrap_ubuntu_release_map:
ubuntu: plucky
ubuntu-lts: noble
bootstrap_ubuntu_release: "{{ bootstrap_ubuntu_release_map[os] | default('noble') }}"
bootstrap_ubuntu_package_config: >- bootstrap_ubuntu_package_config: >-
{{ {{
lookup('vars', bootstrap_var_key) lookup('vars', bootstrap_var_key)