---
# file: roles/calibration/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: Run Spectre Meltdown checker
raw: 'spectre-meltdown-checker --no-color'
---
-# file: roles/calibration/tasks/ubuntu.yaml
+# file: roles/calibration/tasks/ubuntu_bionic.yaml
- name: Install calibration dependencies
apt:
- name: Install CSIT dependencies
apt:
- name: '{{ item }}'
+ name:
+ - 'python-apt'
+ - 'python-setuptools'
+ - 'git'
+ - 'crudini'
+ - 'expect'
+ - 'socat'
+ - 'qemu-system'
+ - 'build-essential'
state: 'present'
cache_valid_time: 3600
install_recommends: False
- with_items:
- - 'python-apt'
- - 'python-setuptools'
- - 'git'
- - 'crudini'
- - 'expect'
- - 'socat'
- - 'qemu-system'
tags: install-csit-dependencies
- name: Install CSIT dependencies
apt:
- name: '{{ item }}'
+ name:
+ - 'dkms'
+ - 'pkg-config'
+ - 'libglib2.0-dev'
+ - 'autoconf'
+ - 'libtool'
+ - 'screen'
+ - 'libmbedcrypto1'
+ - 'libmbedtls10'
+ - 'libmbedx509-0'
+ - 'lxc'
+ - 'openjdk-8-jdk'
+ - 'libpixman-1-dev'
+ - 'python-cffi'
+ - 'python-cffi-backend'
+ - 'python3-cffi'
+ - 'python3-cffi-backend'
state: 'present'
install_recommends: False
- with_items:
- - 'dkms'
- - 'pkg-config'
- - 'libglib2.0-dev'
- - 'autoconf'
- - 'libtool'
- - 'screen'
- - 'libmbedcrypto1'
- - 'libmbedtls10'
- - 'libmbedx509-0'
- - 'lxc'
- - 'openjdk-8-jdk'
- - 'libpixman-1-dev'
- - 'python-cffi'
- - 'python-cffi-backend'
- - 'python3-cffi'
- - 'python3-cffi-backend'
tags: install-csit-dependencies
- name: Install CSIT dependencies
apt:
- name: '{{ item }}'
+ name:
+ - 'unzip'
state: 'present'
install_recommends: False
- with_items:
- - 'unzip'
tags: install-csit-dependencies
- name: Install CSIT PIP requirements
pip:
- name: '{{ item }}'
- with_items:
+ name:
- 'docopt==0.6.2'
- 'ecdsa==0.13'
- 'enum34==1.1.2'
- name: Install VPP PIP requirements
pip:
- name: 'aenum'
+ name:
+ - 'aenum==2.1.2'
tags: install-pip
- name: Load vfio-pci by default
- name: Install CSIT dependencies
apt:
- name: '{{ item }}'
+ name:
+ - 'python-dev'
+ - 'python-virtualenv'
+ - 'python-pip'
+ - 'libpcap-dev'
+ - 'cpufrequtils'
+ - 'cgroup-bin'
+ - 'zlib1g-dev'
+ - 'apt-transport-https'
+ - 'ca-certificates'
+ - 'software-properties-common'
+ - 'libnuma-dev'
state: 'present'
install_recommends: False
- with_items:
- - 'python-dev'
- - 'python-virtualenv'
- - 'python-pip'
- - 'libpcap-dev'
- - 'cpufrequtils'
- - 'cgroup-bin'
- - 'zlib1g-dev'
- - 'apt-transport-https'
- - 'ca-certificates'
- - 'software-properties-common'
- - 'cron'
- - 'libnuma-dev'
tags: install-csit-dependencies
- name: Add an Apt signing key, for docker-ce repository
- name: Install Kubernetes
apt:
- name: '{{ item }}={{ kubernetes_apt_package_name }}'
+ name:
+ - 'kubeadm={{ kubernetes_apt_package_name }}'
+ - 'kubectl={{ kubernetes_apt_package_name }}'
+ - 'kubelet={{ kubernetes_apt_package_name }}'
state: 'present'
force: yes
- with_items:
- - 'kubeadm'
- - 'kubectl'
- - 'kubelet'
tags: install-kubernetes
- name: Apply kubelet parameter