From e03d0f4f8dd951d29926f06048fb62291992077a Mon Sep 17 00:00:00 2001 From: Jeremy Schulman Date: Thu, 20 Mar 2014 09:17:44 -0400 Subject: [PATCH] updates --- env-setup | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/env-setup b/env-setup index e966a0f..e87c55f 100755 --- a/env-setup +++ b/env-setup @@ -15,4 +15,11 @@ fi FULL_PATH=`python -c "import os; print(os.path.realpath('$HACKING_DIR'))"` PRJ_LIBRARY="$FULL_PATH/library" +# we are going to set the ANSIBLE_LIBRARY path, which also needs to include +# the installed library; so check to see if that is setup or not. + +if [ -z "$ANSIBLE_LIBRARY" ]; then + export ANSIBLE_LIBRARY=$(grep library /etc/ansible/ansible.cfg | awk '{ /(.*) = (.*)/; print $3 }') +fi + [[ $ANSIBLE_LIBRARY != ${PRJ_LIBRARY}* ]] && export ANSIBLE_LIBRARY=$PRJ_LIBRARY:$ANSIBLE_LIBRARY