438095fc007de470333dc4c1c6d817b470319d98
[csit.git] / fdio.infra.ansible / roles / vpp_device / tasks / thunderx2.yaml
1 ---
2 # file: roles/vpp_device/tasks/thunderx2.yaml
3
4 - name: Load Kernel Modules On Startup (vfio-pci)
5   ansible.builtin.lineinfile:
6     path: "/etc/modules"
7     state: "present"
8     line: "{{ item }}"
9   with_items:
10     - "vfio-pci"
11   tags:
12     - load-kernel-modules
13
14 - name: Disable Kernel Modules On Startup (cppc_cpufreq)
15   ansible.builtin.lineinfile:
16     path: "/etc/modprobe.d/blacklist-cppc_cpufreq.conf"
17     state: "present"
18     line: "{{ item }}"
19     create: "yes"
20   with_items:
21     - "blacklist cppc_cpufreq"
22   tags:
23     - disable-kernel-modules