Condition LUKS and guest tools in bootstrap vars
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user