2 # file: roles/aws/tasks/main.yaml
4 - name: AWS - Edit repositories
5 include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml'
8 - name: AWS - Get vfio-pci Patcher Script
10 url: "https://github.com/amzn/amzn-drivers/raw/master/userspace/dpdk/enav2-vfio-patch/vfio-wc-patch.sh"
11 dest: "/opt/vfio-wc-patch.sh"
13 register: "vfio_patch_downloaded"
17 - name: AWS - Patch vfio-pci
18 shell: "/bin/bash /opt/vfio-wc-patch.sh"
19 when: "vfio_patch_downloaded"
23 - name: AWS - Load Kernel Modules By Default
31 register: "modules_added"
35 - name: AWS - Add Kernel Modules Options
37 path: "/etc/modprobe.d/igb_uio.conf"
42 - "options igb_uio wc_activate=1"
44 register: "modules_added"
48 - name: AWS - Reload systemd-modules
50 name: "systemd-modules-load"
54 - reload-systemd-modules
56 - name: AWS - Performance Tuning - Adjust nr_hugepages
58 name: "vm.nr_hugepages"
61 sysctl_file: "/etc/sysctl.d/90-csit.conf"