aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml
blob: d9026e9182d307c89ba24d1be321be587dae2e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
# file: roles/tg_sut/tasks/main.yaml

- name: Install distribution - release - machine prerequisites
  include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml'

- name: Machine specifics
  include_tasks: '{{ ansible_machine }}.yaml'

- name: skylake specific
  import_tasks: skylake.yaml
  when: ("skylake" in groups) and inventory_hostname in groups['skylake']

- name: Copy netplan network config file
  template:
    src: 'files/netplan_config'
    dest: '/etc/netplan/01-netcfg.yaml'
    owner: 'root'
    group: 'root'
    mode: '0644'
  tags: copy-interface-file

- name: Copy CSIT sysctl file
  template:
    src: 'files/90-csit'
    dest: '/etc/sysctl.d/90-csit.conf'
    owner: 'root'
    group: 'root'
    mode: '0644'
  tags: copy-90-csit

- name: Copy IRQ load balancing file
  copy:
    src: 'files/irqbalance'
    dest: '/etc/default/irqbalance'
    owner: 'root'
    group: 'root'
    mode: '0644'
  tags: copy-irq

- name: Copy cpufrequtils file
  copy:
    src: 'files/cpufrequtils'
    dest: '/etc/default/cpufrequtils'
    owner: 'root'
    group: 'root'
    mode: '0644'
  tags: copy-cpufrequtils

- name: Set ondemand service to disable
  service:
    name: 'ondemand'
    enabled: 'no'
  tags: set-ondemand

- name: Install CSIT PIP requirements
  pip:
    name:
      - 'docopt==0.6.2'
      - 'ecdsa==0.13'
      - 'enum34==1.1.2'
      - 'ipaddress==1.0.16'
      - 'paramiko==1.16.0'
      - 'pexpect==4.6.0'
      - 'pycrypto==2.6.1'
      - 'pykwalify==1.5.0'
      - 'pypcap==1.1.5'
      - 'python-dateutil==2.4.2'
      - 'PyYAML==3.11'
      - 'requests==2.9.1'
      - 'robotframework==2.9.2'
      - 'scapy==2.3.1'
      - 'scp==0.10.2'
      - 'six==1.12.0'
      - 'dill==0.2.8.2'
      - 'numpy==1.14.5'
      - 'scipy==1.1.0'
  tags: install-pip

- name: Install VPP PIP requirements
  pip:
    name:
      - 'aenum==2.1.2'
  tags: install-pip

- name: Load vfio-pci by default
  lineinfile:
    path: '/etc/modules'
    state: 'present'
    line: 'vfio-pci'
  tags: load-vfio-pci