aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/vpp_device/tasks/thunderx2.yaml
blob: 618a65ad7fbfe6a1e0ee1f2489bd718a4ff2d7df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
# file: tasks/thunderx2.yaml

- name: Load Kernel Modules On Startup (vfio-pci)
  ansible.builtin.lineinfile:
    path: "/etc/modules"
    state: "present"
    line: "{{ item }}"
  with_items:
    - "vfio-pci"
  tags:
    - load-kernel-modules

- name: Disable Kernel Modules On Startup (cppc_cpufreq)
  ansible.builtin.lineinfile:
    path: "/etc/modprobe.d/blacklist-cppc_cpufreq.conf"
    state: "present"
    line: "{{ item }}"
    create: "yes"
  with_items:
    - "blacklist cppc_cpufreq"
  tags:
    - disable-kernel-modules