Skip to content

Commit

Permalink
Change conditional to search for 'Intel'
Browse files Browse the repository at this point in the history
Changes the conditional to search for 'Intel' in the
ansible_facts.processor variable as the first item in the list is not
always consistent.
  • Loading branch information
technowhizz committed Mar 27, 2024
1 parent e754b0a commit 960abbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/iommu/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- intel_iommu=on
kernel_cmdline_remove: # noqa: var-naming[no-role-prefix]
- ^intel_iommu=
when: "'Intel' in ansible_facts.processor.0"
when: ansible_facts.processor | select('search', 'Intel') | list | length > 0

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

0 comments on commit 960abbe

Please sign in to comment.