-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a81227
commit e719049
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# stackhpc.linux.iommu | ||
|
||
## Example playbook | ||
|
||
``` | ||
--- | ||
- name: Enable GPU Passthrough | ||
hosts: gpu_passthrough | ||
tasks: | ||
- import_role: | ||
name: stackhpc.linux.gpu_passthrough | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Blacklist nouveau | ||
Check failure on line 2 in roles/gpu_passthrough/tasks/main.yml GitHub Actions / lint / Ansible 2.12 lint
|
||
ansible.builtin.blockinfile: | ||
path: /etc/modprobe.d/blacklist-nouveau.conf | ||
block: | | ||
blacklist nouveau | ||
options nouveau modeset=0 | ||
mode: "0664" | ||
owner: root | ||
group: root | ||
create: true | ||
handlers: | ||
- import_tasks: iommu/handlers/main.yml | ||
become: true | ||
notify: | ||
- reboot | ||
- Regenerate initramfs | ||
- name: Add IOMMU config to kernel command line | ||
ansible.builtin.include_role: | ||
name: stackhpc.linux.iommu |