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:
parent
9d014e620c
commit
4e90c94c9e
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue