Skip to content

Commit

Permalink
Update iommu role for rl9
Browse files Browse the repository at this point in the history
  • Loading branch information
technowhizz committed Mar 1, 2024
1 parent e754b0a commit f3906c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/iommu/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
ansible.builtin.include_role:
name: stackhpc.linux.grubcmdline
vars:
kernel_cmdline: # noqa: var-naming[no-role-prefix]
- 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]
kernel_cmdline_remove: # noqa: var-naming[no-role-prefix]
- ^intel_iommu=
when: "'Intel' in ansible_facts.processor.0"
- ^vfio-pci\.ids=
when: ansible_facts.processor | select('search', 'Intel') | list | length > 0

- name: Set iommu=pt
ansible.builtin.include_role:
Expand Down

0 comments on commit f3906c6

Please sign in to comment.