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:
parent
d62c51c041
commit
1684fd90e1
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue