2 # file: roles/vpp_device/tasks/main.yaml
4 - name: VPP_device - Load Kernel Modules By Default
14 - name: VPP_device - Disable ipv6 router advertisement
16 name: "net.ipv6.conf.default.accept_ra"
19 sysctl_file: "/etc/sysctl.d/90-csit.conf"
24 - name: VPP_device - Disable ipv6 router advertisement
26 name: "net.ipv6.conf.all.accept_ra"
29 sysctl_file: "/etc/sysctl.d/90-csit.conf"
34 - name: VPP_device - Copy csit-initialize-vfs.sh
36 src: "files/csit-initialize-vfs.sh"
37 dest: "/usr/local/bin/"
44 - name: VPP_device - Copy csit-initialize-vfs-data.sh
46 src: "files/{{ vfs_data_file }}"
47 dest: "/usr/local/bin/csit-initialize-vfs-data.sh"
51 tags: copy-vf-data-script
53 - vfs_data_file is defined
55 - name: VPP_device - Copy default csit-initialize-vfs-data.sh
57 src: "files/csit-initialize-vfs-default.sh"
58 dest: "/usr/local/bin/csit-initialize-vfs-data.sh"
62 tags: copy-vf-data-script
64 - vfs_data_file is not defined
66 - name: VPP_device - Start csit-initialize-vfs.service
68 src: "files/csit-initialize-vfs.service"
69 dest: "/etc/systemd/system/"
74 - "Start csit-initialize-vfs.service"
78 - meta: flush_handlers
80 - name: VPP_device - Set hugepages in GRUB
82 path: "/etc/default/grub"
84 regexp: "^GRUB_CMDLINE_LINUX="
85 line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value %}{{key}}={{value}} {% else %}{{key}} {% endif %}{% endfor %}\""
92 - meta: flush_handlers