From 0debf5b199f78314e008688fc594deb1c2f04c53 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 18 Sep 2017 15:01:21 +0000 Subject: [PATCH] Revert "Install dnf on CentOS hosts" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7401dddaa2a3a769623ed8ed222ba91c61721828. CentOS has removed dnf from the EPEL repositories and will have an updated dnf available for CentOS 7 sometime soon. ☹ Change-Id: I888826371930517a722e4625f68f023e28bdb3d2 --- playbooks/openstack-hosts-setup.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/playbooks/openstack-hosts-setup.yml b/playbooks/openstack-hosts-setup.yml index d5bf4645d3..3f3134cc7f 100644 --- a/playbooks/openstack-hosts-setup.yml +++ b/playbooks/openstack-hosts-setup.yml @@ -24,15 +24,12 @@ gather_facts: false user: root pre_tasks: - - name: Install prerequisites before setting up the host + - name: Ensure python is installed register: result raw: | - if which apt-get > /dev/null && ! which python > /dev/null ; then + if which apt-get >/dev/null && ! which python >/dev/null ; then apt-get -y install python exit 2 - elif which yum > /dev/null && ! which dnf > /dev/null ; then - yum --disablerepo=extras -y install dnf dnf-plugins-core python-dnf - exit 2 else exit 0 fi