93c5d36bc2f2ea0529ab1b8cb3194ef48947cbeb
[csit.git] / resources / tools / testbed-setup / ansible / roles / vpp_device / tasks / main.yaml
1 ---
2 # file: roles/vpp_device/tasks/main.yaml
3
4 - name: Copy csit-initialize-vfs.sh
5   copy:
6    src: 'files/csit-initialize-vfs.sh'
7    dest: '/usr/local/bin/'
8    owner: 'root'
9    group: 'root'
10    mode: '744'
11   tags: copy-vf-script
12
13 - name: Start csit-initialize-vfs.service
14   copy:
15    src: 'files/csit-initialize-vfs.service'
16    dest: '/etc/systemd/system/'
17    owner: 'root'
18    group: 'root'
19    mode: '644'
20   notify:
21     - 'Start csit-initialize-vfs.service'
22   tags: start-vf-service
23
24 - meta: flush_handlers
25
26 - name: Set hugepages in GRUB
27   lineinfile:
28     path: '/etc/default/grub'
29     state: 'present'
30     regexp: '^GRUB_CMDLINE_LINUX='
31     line: 'GRUB_CMDLINE_LINUX="hugepagesz=2M hugepages={{ grub.nr_hugepages }}"'
32   notify:
33     - 'Update GRUB'
34     - 'Reboot server'
35   tags: set-grub
36
37 - meta: flush_handlers
38
39 - name: Kernel VM install
40   include_tasks: '../../common/tasks/kernel_install.yaml'
41   tags: install-kernel-image

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.