File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Enable GPU passthough
3
- hosts : " {{ gpu_group_map.keys() | default([] ) }}"
3
+ hosts : " {{ (gpu_group_map | default({})).keys( ) }}"
4
4
vars :
5
5
# This playbook will execute after nodes are deployed
6
6
# and before overcloud host configure - we can't assume
17
17
reboot_timeout_s : " {{ 20 * 60 }}"
18
18
tasks :
19
19
- name : Template dracut config
20
- blockinfile :
20
+ ansible.builtin. blockinfile :
21
21
path : /etc/dracut.conf.d/gpu-vfio.conf
22
22
block : |
23
23
add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"
31
31
- Reboot
32
32
33
33
- name : Add vfio to modules-load.d
34
- blockinfile :
34
+ ansible.builtin. blockinfile :
35
35
path : /etc/modules-load.d/vfio.conf
36
36
block : |
37
37
vfio
46
46
notify : reboot
47
47
48
48
- name : Blacklist nouveau
49
- blockinfile :
49
+ ansible.builtin. blockinfile :
50
50
path : /etc/modprobe.d/blacklist-nouveau.conf
51
51
block : |
52
52
blacklist nouveau
70
70
# number of those issues can be solved by passing the ignore_msrs=1
71
71
# option to the KVM module, which will ignore unimplemented MSRs.
72
72
# source: https://wiki.archlinux.org/index.php/QEMU
73
- blockinfile :
73
+ ansible.builtin. blockinfile :
74
74
path : /etc/modprobe.d/kvm.conf
75
75
block : |
76
76
options kvm ignore_msrs=Y
87
87
notify : Reboot
88
88
89
89
- name : Add vfio-pci.ids kernel args
90
- include_role :
90
+ ansible.builtin. include_role :
91
91
name : stackhpc.grubcmdline
92
92
vars :
93
93
kernel_cmdline :
You can’t perform that action at this time.
0 commit comments