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