Skip to content

Commit f3906c6

Browse files
committed
Update iommu role for rl9
1 parent e754b0a commit f3906c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/iommu/tasks/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
ansible.builtin.include_role:
44
name: stackhpc.linux.grubcmdline
55
vars:
6-
kernel_cmdline: # noqa: var-naming[no-role-prefix]
7-
- intel_iommu=on
6+
kernel_cmdline: "{{ ['intel_iommu=on'] + (['vfio-pci.ids=' + vfio_pci_ids] if vfio_pci_ids is defined else []) }}" # noqa: var-naming[no-role-prefix]
87
kernel_cmdline_remove: # noqa: var-naming[no-role-prefix]
98
- ^intel_iommu=
10-
when: "'Intel' in ansible_facts.processor.0"
9+
- ^vfio-pci\.ids=
10+
when: ansible_facts.processor | select('search', 'Intel') | list | length > 0
1111

1212
- name: Set iommu=pt
1313
ansible.builtin.include_role:

0 commit comments

Comments
 (0)