d07f3284249d0acc1834c5fb23af3495af920634
[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: Copy 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: ['Enable csit-initialize-vfs.service']
21   tags: copy-vf-service
22
23 - name: Set isolcpus and pstate parameter
24   lineinfile:
25     path: '/etc/default/grub'
26     state: 'present'
27     regexp: '^GRUB_CMDLINE_LINUX='
28     line: 'GRUB_CMDLINE_LINUX="hugepagesz=2M hugepages=65536"'
29   notify: ['Update GRUB']
30