Condition LUKS and guest tools in bootstrap vars

This commit is contained in:
2025-12-27 23:52:06 +01:00
parent 2c23ce6cbb
commit ae4fb6f43c
9 changed files with 640 additions and 491 deletions

View File

@@ -3,16 +3,6 @@
vars:
bootstrap_os_key: "{{ os | lower }}"
bootstrap_var_key: "{{ 'bootstrap_' + (os | lower | replace('-', '_')) }}"
bootstrap_hypervisor_key: "{{ hypervisor | default('none') | lower }}"
bootstrap_guest_agent_packages: >-
{{
['qemu-guest-agent'] if bootstrap_hypervisor_key in ['libvirt', 'proxmox']
else ['open-vm-tools'] if bootstrap_hypervisor_key == 'vmware'
else []
}}
bootstrap_guest_agent_remove_packages:
- open-vm-tools
- qemu-guest-agent
block:
- name: Include AlmaLinux bootstrap tasks
when: bootstrap_os_key == 'almalinux'