---
-# file: roles/aws/tasks/main.yaml
+# file: tasks/main.yaml
- name: Edit repositories
include_tasks: "{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml"
with_items:
- "igb_uio"
- "vfio-pci"
- notify:
- - "Reboot Server"
tags:
- aws-load-kernel-modules
create: "yes"
with_items:
- "options igb_uio wc_activate=1"
- notify:
- - "Reboot Server"
tags:
- aws-load-kernel-modules
create: "yes"
with_items:
- "options vfio enable_unsafe_noiommu_mode=1"
- notify:
- - "Reboot Server"
tags:
- aws-load-kernel-modules
-- meta: flush_handlers
-
#- name: Get vfio-pci With WC Patcher
# ansible.builtin.get_url:
# url: "https://github.com/amzn/amzn-drivers/raw/master/userspace/dpdk/enav2-vfio-patch/get-vfio-with-wc.sh"