We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e754b0a commit f3906c6Copy full SHA for f3906c6
roles/iommu/tasks/main.yml
@@ -3,11 +3,11 @@
3
ansible.builtin.include_role:
4
name: stackhpc.linux.grubcmdline
5
vars:
6
- kernel_cmdline: # noqa: var-naming[no-role-prefix]
7
- - intel_iommu=on
+ kernel_cmdline: "{{ ['intel_iommu=on'] + (['vfio-pci.ids=' + vfio_pci_ids] if vfio_pci_ids is defined else []) }}" # noqa: var-naming[no-role-prefix]
8
kernel_cmdline_remove: # noqa: var-naming[no-role-prefix]
9
- ^intel_iommu=
10
- when: "'Intel' in ansible_facts.processor.0"
+ - ^vfio-pci\.ids=
+ when: ansible_facts.processor | select('search', 'Intel') | list | length > 0
11
12
- name: Set iommu=pt
13
0 commit comments