refactor: reorganize proxmox roles, add hardware acceleration, and update common config tasks

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-05-03 10:24:50 +02:00
parent e3c67a32e9
commit a913e1cbc0
25 changed files with 228 additions and 77 deletions

View File

@@ -5,8 +5,7 @@
regexp: "^GRUB_CMDLINE_LINUX_DEFAULT="
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction initcall_blacklist=sysfb_init video=simplefb:off video=vesafb:off video=efifb:off video=vesa:off disable_vga=1 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu,snd_hda_intel,snd_hda_codec_hdmi,i915"'
backup: true
# notify:
# - Reboot Node
register: iommu_result
- name: Ensure VFIO modules are listed in /etc/modules
ansible.builtin.blockinfile:
@@ -18,8 +17,21 @@
vfio_pci
vfio_virqfd
create: true
backup: true
register: vfio_result
- name: Update initramfs
ansible.builtin.command: update-initramfs -u -k all
args:
warn: false
when: iommu_result.changed or vfio_result.changed
# notify:
# - Reboot Node
- name: update grub configuration
ansible.builtin.command: update-grub
args:
warn: false
when: iommu_result.changed or vfio_result.changed
# notify:
# - Reboot Node