X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Fvpp_device%2Ftasks%2Fmain.yaml;h=0114b05a40ea48217c5842d92d90fcb2b356df20;hp=d12fe1edf5c3f133200f82f0e483a486194a20d5;hb=d41a5490f30a161561c39c4f1b08add17b9cf6f7;hpb=5a1f1b7fa58c082dd359a7b4df700f5df3839bfd diff --git a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml index d12fe1edf5..0114b05a40 100644 --- a/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml +++ b/fdio.infra.ansible/roles/vpp_device/tasks/main.yaml @@ -75,43 +75,43 @@ - name: Copy csit-initialize-vfs.sh copy: - src: "files/csit-initialize-vfs.sh" - dest: "/usr/local/bin/" - owner: "root" - group: "root" - mode: 0744 + src: "files/csit-initialize-vfs.sh" + dest: "/usr/local/bin/" + owner: "root" + group: "root" + mode: 0744 tags: - copy-vf-script - name: Copy csit-initialize-vfs-data.sh copy: - src: "files/{{ vfs_data_file }}" - dest: "/usr/local/bin/csit-initialize-vfs-data.sh" - owner: "root" - group: "root" - mode: 0744 + src: "files/{{ vfs_data_file }}" + dest: "/usr/local/bin/csit-initialize-vfs-data.sh" + owner: "root" + group: "root" + mode: 0744 tags: copy-vf-data-script when: - vfs_data_file is defined - name: Copy Default csit-initialize-vfs-data.sh copy: - src: "files/csit-initialize-vfs-default.sh" - dest: "/usr/local/bin/csit-initialize-vfs-data.sh" - owner: "root" - group: "root" - mode: 0744 + src: "files/csit-initialize-vfs-default.sh" + dest: "/usr/local/bin/csit-initialize-vfs-data.sh" + owner: "root" + group: "root" + mode: 0744 tags: copy-vf-data-script when: - vfs_data_file is not defined - name: Start csit-initialize-vfs.service copy: - src: "files/csit-initialize-vfs.service" - dest: "/etc/systemd/system/" - owner: "root" - group: "root" - mode: 0644 + src: "files/csit-initialize-vfs.service" + dest: "/etc/systemd/system/" + owner: "root" + group: "root" + mode: 0644 notify: - "Start csit-initialize-vfs.service" tags: @@ -129,3 +129,12 @@ - "Update GRUB" tags: - set-grub + +- name: Configure unsafe noiommu + lineinfile: + path: "/etc/modprobe.d/vfio-noiommu.conf" + state: "present" + line: "options vfio enable_unsafe_noiommu_mode=1" + create: "yes" + tags: + - configure-unsafe-noiommu