From 5ee64a6881c14e3443dcb5e4c218b9df9c9864eb Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 11 May 2020 00:43:07 +0900 Subject: [PATCH] Install yum on CentOS8/Fedora Currently beaker-puppet requires yum command while installing required packages, and it fails on CentOS8/Fedora which doesn't have yum by default. This patch makes sure that yum is installed while preparing a test node so that we can avoid the error caused by missing yum. Change-Id: I780d2d221f0209e914514398c61c7a45fa33ffcf --- playbooks/prepare-node-common.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/prepare-node-common.yaml b/playbooks/prepare-node-common.yaml index a1d9e1a85..cf80dc871 100644 --- a/playbooks/prepare-node-common.yaml +++ b/playbooks/prepare-node-common.yaml @@ -74,6 +74,11 @@ - ruby-devel - zlib-devel + - name: Install yum (Fedora or CentOS/RHEL>=8) + dnf: + name: yum + become: true + when: - ansible_os_family == 'RedHat' - ansible_distribution == "Fedora" or ansible_distribution_major_version >= "8"