blob: e5da2fc72db3a0dbfdefa33b19763100a685836b (
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
|
---
# file: roles/tg_sut/tasks/main.yaml
- name: Ubuntu specific
import_tasks: ubuntu.yaml
when: ansible_distribution|lower == 'ubuntu'
- name: x86 specific
import_tasks: x86_64.yaml
when: ansible_machine == 'x86_64'
- name: skylake specific
import_tasks: skylake.yaml
when: ("skylake" in groups) and inventory_hostname in groups['skylake']
- name: aarch specific
import_tasks: aarch64.yaml
when: ansible_machine == 'aarch64'
- 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: Copy Python requirements file
copy:
src: 'files/requirements.txt'
dest: '/tmp/requirements.txt'
tags: copy-pip
- name: Set ondemand service to disable
service:
name: 'ondemand'
enabled: 'no'
tags: set-ondemand
- name: Install PIP requirements
pip:
requirements: '/tmp/requirements.txt'
tags: install-pip
- name: Load vfio-pci by default
lineinfile:
path: '/etc/modules'
state: 'present'
line: 'vfio-pci'
tags: load-vfio-pci
|