6011917de2c12068c7a44969700735c9f623b372
[csit.git] / resources / tools / testbed-setup / ansible / roles / vpp / tasks / main.yaml
1 ---
2 # file: roles/vpp/tasks/main.yaml
3
4 - name: Inst - Update Package Cache (APT)
5   apt:
6     update_cache: yes
7     cache_valid_time: 3600
8   when:
9     - ansible_distribution|lower == 'ubuntu'
10   tags:
11     - vpp-inst-prerequisites
12
13 - name: Inst - Prerequisites
14   package:
15     name: "{{ packages | flatten(levels=1) }}"
16     state: latest
17   tags:
18     - vpp-inst-prerequisites
19
20 - name: Inst - VPP 19.08 PIP requirements
21   pip:
22     name:
23       - "aenum==2.1.2"
24     executable: pip2
25   tags:
26     - install-pip
27
28 - name: Copy 80-vpp.conf
29   file:
30     src: "/dev/null"
31     dest: "/etc/sysctl.d/80-vpp.conf"
32     state: "link"
33   become: yes
34   tags:
35     - create-80-vpp