From e6d9e75675c91f5a69a0c968e3df33f63a22bb36 Mon Sep 17 00:00:00 2001 From: "Michael S. Pedersen" Date: Thu, 21 Jan 2021 14:18:53 +0000 Subject: Support Ubuntu 18.04 and 20.04 LTS as target OS Fixes: [KUB-42] Add support for Ubuntu 18.04 and 20.04 LTS as host OS on target nodes Also includes patch for using vfio-pci module on Ubuntu 18.04 LTS Signed-off-by: Michael S. Pedersen Change-Id: Id6150ff30040addfdd7d860bec48583e33a25c59 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71788 Tested-by: jenkins-ci Reviewed-by: Rihab Banday --- playbooks/roles/pre-install/tasks/main.yml | 14 +++++++++++++- playbooks/roles/pre-install/vars/Debian.yml | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 playbooks/roles/pre-install/vars/Debian.yml (limited to 'playbooks') diff --git a/playbooks/roles/pre-install/tasks/main.yml b/playbooks/roles/pre-install/tasks/main.yml index da21c16..ba3e1c0 100644 --- a/playbooks/roles/pre-install/tasks/main.yml +++ b/playbooks/roles/pre-install/tasks/main.yml @@ -8,8 +8,10 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -- name: Ensure Python3 is installed (Equinix Metal) +- name: Ensure Python3 is installed for CentOS (Equinix Metal) raw: yum install -y python3 + ignore_errors: true + failed_when: false when: lookup('env', 'VENDOR') == 'equinix-metal' - name: Gather facts @@ -19,6 +21,16 @@ include_vars: file: "{{ ansible_os_family }}.yml" +- name: Update cache (RedHat) + yum: + update_cache: yes + when: ansible_os_family == "RedHat" + +- name: Update cache (Debian) + apt: + update_cache: yes + when: ansible_os_family == "Debian" + - name: Install BRMA requirements become: true package: diff --git a/playbooks/roles/pre-install/vars/Debian.yml b/playbooks/roles/pre-install/vars/Debian.yml new file mode 100644 index 0000000..1a7144b --- /dev/null +++ b/playbooks/roles/pre-install/vars/Debian.yml @@ -0,0 +1,6 @@ +--- +bmra_pkgs: + - lshw + - pciutils + - ethtool + - python3 -- cgit 1.2.3-korg