updated to enable epel repo before instaling ansible

parent 5c1cc678
Showing with 3 additions and 2 deletions
...@@ -10,7 +10,7 @@ if [ -e "/usr/bin/apt-get" ]; then ...@@ -10,7 +10,7 @@ if [ -e "/usr/bin/apt-get" ]; then
elif [ -e "/usr/bin/yum" ]; then elif [ -e "/usr/bin/yum" ]; then
echo "-- Installing using yum" echo "-- Installing using yum"
sudo yum -y install epel-release sudo yum -y install epel-release
sudo yum -y install ansible sudo yum -y install ansible --enablerepo=epel
else else
echo "XX Cannot install ansible" echo "XX Cannot install ansible"
exit exit
...@@ -30,4 +30,4 @@ elif [ -e "/home/vagrant/sync/playbook.yml" ]; then ...@@ -30,4 +30,4 @@ elif [ -e "/home/vagrant/sync/playbook.yml" ]; then
else else
echo "XX Playbook not found, provision not finished" echo "XX Playbook not found, provision not finished"
exit exit
fi fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment