Skip to content

Commit 6de6d32

Browse files
committed
Fix linter errors
1 parent 9cd7720 commit 6de6d32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

etc/kayobe/ansible/pci-passthrough.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Enable GPU passthough
3-
hosts: "{{ gpu_group_map.keys() | default([]) }}"
3+
hosts: "{{ (gpu_group_map | default({})).keys() }}"
44
vars:
55
# This playbook will execute after nodes are deployed
66
# and before overcloud host configure - we can't assume
@@ -17,7 +17,7 @@
1717
reboot_timeout_s: "{{ 20 * 60 }}"
1818
tasks:
1919
- name: Template dracut config
20-
blockinfile:
20+
ansible.builtin.blockinfile:
2121
path: /etc/dracut.conf.d/gpu-vfio.conf
2222
block: |
2323
add_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"
@@ -31,7 +31,7 @@
3131
- Reboot
3232

3333
- name: Add vfio to modules-load.d
34-
blockinfile:
34+
ansible.builtin.blockinfile:
3535
path: /etc/modules-load.d/vfio.conf
3636
block: |
3737
vfio
@@ -46,7 +46,7 @@
4646
notify: reboot
4747

4848
- name: Blacklist nouveau
49-
blockinfile:
49+
ansible.builtin.blockinfile:
5050
path: /etc/modprobe.d/blacklist-nouveau.conf
5151
block: |
5252
blacklist nouveau
@@ -70,7 +70,7 @@
7070
# number of those issues can be solved by passing the ignore_msrs=1
7171
# option to the KVM module, which will ignore unimplemented MSRs.
7272
# source: https://wiki.archlinux.org/index.php/QEMU
73-
blockinfile:
73+
ansible.builtin.blockinfile:
7474
path: /etc/modprobe.d/kvm.conf
7575
block: |
7676
options kvm ignore_msrs=Y
@@ -87,7 +87,7 @@
8787
notify: Reboot
8888

8989
- name: Add vfio-pci.ids kernel args
90-
include_role:
90+
ansible.builtin.include_role:
9191
name: stackhpc.grubcmdline
9292
vars:
9393
kernel_cmdline:

0 commit comments

Comments
 (0)