1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

safer test for existence of command (ansible-playbook)

This commit is contained in:
A Holt 2018-04-05 03:28:52 -04:00 committed by GitHub
parent d62c51c041
commit 1684fd90e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,9 @@
# Installs or upgrades to the best possible Ansible release, so iiab-install
# can proceed. Ensure you're online before running this script!
GOOD_VER="2.4.4" # Ansible version for OLPC, for pip.
# On other OS's we install/upgrade to the latest Ansible.
# Pin all to 2.5.x in future, if really/truly nec?
GOOD_VER="2.4.4" # Ansible version pip install onto OLPC XO laptops.
# On other OS's we install/upgrade to the latest Ansible 2.4.x
# Pins to 2.5.x in the near-future, for IIAB 6.6?
CURR_VER="undefined"
# FOUND="false" # NOT USED AS OF 2017-12-12
# FAMILY="undefined" # NOT USED AS OF 2017-12-12
@ -14,7 +14,8 @@ CURR_VER="undefined"
export DEBIAN_FRONTEND=noninteractive
if ! which ansible-playbook ; then
# if ! which ansible-playbook ; then
if [[ ! `command -v ansible-playbook` ]]; then
echo "Installing --- Please Wait"
if [ -f /etc/centos-release ]; then
yum -y install ca-certificates nss epel-release