Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Backport CRC checking from master
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
tg_sut
/
tasks
/
main.yaml
diff --git
a/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml
b/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml
index
e5da2fc
..
f586e87
100644
(file)
--- a/
resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml
+++ b/
resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/main.yaml
@@
-1,21
+1,15
@@
---
# file: roles/tg_sut/tasks/main.yaml
---
# file: roles/tg_sut/tasks/main.yaml
-- name: Ubuntu specific
- import_tasks: ubuntu.yaml
- when: ansible_distribution|lower == 'ubuntu'
+- name: Install distribution - release - machine prerequisites
+ include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml'
-- name: x86 specific
- import_tasks: x86_64.yaml
- when: ansible_machine == 'x86_64'
+- name: Machine specifics
+ include_tasks: '{{ ansible_machine }}.yaml'
-- name:
s
kylake specific
+- name:
S
kylake specific
import_tasks: skylake.yaml
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'
+ when: cpu_microarchitecture == "skylake"
- name: Copy netplan network config file
template:
- name: Copy netplan network config file
template:
@@
-53,21
+47,16
@@
mode: '0644'
tags: copy-cpufrequtils
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: Set ondemand service to disable
service:
name: 'ondemand'
enabled: 'no'
tags: set-ondemand
-- name: Install PIP requirements
+- name: Install
VPP
PIP requirements
pip:
pip:
- requirements: '/tmp/requirements.txt'
+ name:
+ - 'aenum==2.1.2'
tags: install-pip
- name: Load vfio-pci by default
tags: install-pip
- name: Load vfio-pci by default