1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

ansible version logic standardized w/ iiab-install

This commit is contained in:
A Holt 2017-12-13 04:51:45 -05:00 committed by GitHub
parent 9d014e620c
commit 4e90c94c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,8 @@ if ! which ansible-playbook ; then
exit 1 exit 1
fi fi
else else
CURR_VER=`ansible --version | head -n 1 | cut -f 2 -d " "` #CURR_VER=`ansible --version | head -n 1 | cut -f 2 -d " "`
CURR_VER=`ansible --version | head -1 | awk '{print $2}'`
echo "Current ansible version installed is $CURR_VER" echo "Current ansible version installed is $CURR_VER"
if [ -f /etc/centos-release ] || [ -f /etc/fedora-release ]; then if [ -f /etc/centos-release ] || [ -f /etc/fedora-release ]; then
echo "Please use your system's package manager to update ansible" echo "Please use your system's package manager to update ansible"