From 4cd3349bf38296c49b2404e4be79baccf0657bac Mon Sep 17 00:00:00 2001 From: Leif Madsen Date: Thu, 9 Mar 2017 13:51:51 -0500 Subject: [PATCH] Fedora 23 and later uses DNF Install python-dnf2 for Ansible usage in Fedora 23 or later so that we can access 'dnf' commands via the package module. --- scripts/bootstrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 6d9be9c..7a2ea62 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -40,6 +40,10 @@ if [ "$ID" = "centos" ]; then $pm install python python-pip -y fi +if [ "$ID" = "fedora"] && [ $VERSION_ID -gt 22 ]; then + $pm install python2-dnf -y +fi + # install pre-requisites $pm makecache $pm install git ntp ansible libselinux-python -y