From 91f016f5562bb01a7da36c37218f5b0bb5acf7c6 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 20 Oct 2025 14:53:17 +0200 Subject: [PATCH] UEFI: do not install and configure UEFI on Ubuntu 20 --- Ansible/roles/kvm/tasks/ubuntu.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ansible/roles/kvm/tasks/ubuntu.yml b/Ansible/roles/kvm/tasks/ubuntu.yml index 763b416942..ff1fd505d2 100644 --- a/Ansible/roles/kvm/tasks/ubuntu.yml +++ b/Ansible/roles/kvm/tasks/ubuntu.yml @@ -68,8 +68,16 @@ - tcpdump - qemu-kvm - parted + +- name: Install packages for UEFI + apt: + pkg: "{{ item }}" + state: latest + update_cache: yes + with_items: - ovmf - swtpm + when: ansible_distribution_major_version|int >= 22 - name: Install basic utilities and tools - pre bionic apt: @@ -384,6 +392,7 @@ src: uefi.properties.Ubuntu dest: /etc/cloudstack/agent/uefi.properties mode: 0644 + when: ansible_distribution_major_version|int >= 22 - name: restart machine (Ubuntu networking restart bug #1301015) command: shutdown -r now "Ansible updates triggered"