summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorMichael S. Pedersen <michaelx.pedersen@intel.com>2021-01-21 14:18:53 +0000
committerRihab Banday <rihab.banday@ericsson.com>2021-03-03 15:22:47 +0000
commite6d9e75675c91f5a69a0c968e3df33f63a22bb36 (patch)
tree006822ba720e67c70d334ae4567e827a33fbbaaf /playbooks
parentc3e3fe23c80d386a23a4344933bdc0c942dc5ba8 (diff)
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 <michaelx.pedersen@intel.com> Change-Id: Id6150ff30040addfdd7d860bec48583e33a25c59 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71788 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/roles/pre-install/tasks/main.yml14
-rw-r--r--playbooks/roles/pre-install/vars/Debian.yml6
2 files changed, 19 insertions, 1 deletions
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