This commit is contained in:
Jeremy Schulman 2014-03-20 09:17:44 -04:00
Родитель 199dca3f83
Коммит e03d0f4f8d
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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