Revert "Install dnf on CentOS hosts"

This reverts commit 7401dddaa2.

CentOS has removed dnf from the EPEL repositories and will have
an updated dnf available for CentOS 7 sometime soon. ☹

Change-Id: I888826371930517a722e4625f68f023e28bdb3d2
This commit is contained in:
Major Hayden 2017-09-18 15:01:21 +00:00
parent 7401dddaa2
commit 0debf5b199
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -24,15 +24,12 @@
gather_facts: false gather_facts: false
user: root user: root
pre_tasks: pre_tasks:
- name: Install prerequisites before setting up the host - name: Ensure python is installed
register: result register: result
raw: | 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 apt-get -y install python
exit 2 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 else
exit 0 exit 0
fi fi