diff options
author | Bryan Hunt <github@binarytemple.co.uk> | 2014-10-28 20:19:15 +0000 |
---|---|---|
committer | Bryan Hunt <github@binarytemple.co.uk> | 2014-10-28 20:19:15 +0000 |
commit | e5f651c458b5b3326f0ef371f2c8fc0d0beab6b5 (patch) | |
tree | 2488f67bdd3519d4c450abc8eac4bceb8fb06db2 /hacking | |
parent | cb53b0f94af23599562f8375a191f45ab297e7f2 (diff) | |
download | ansible-e5f651c458b5b3326f0ef371f2c8fc0d0beab6b5.tar.gz |
export ANSIBLE_HOME so it can be used in scripts
In order that scripts like this can work
```
#!/bin/bash
ansible -vvvv tag_instance_type_foo-training -i "${ANSIBLE_HOME}/plugins/inventory/ec2.py" --private-key=~/Downloads/foo-training.pem -u ec2-user -m ping
```
Diffstat (limited to 'hacking')
-rwxr-xr-x | hacking/env-setup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/env-setup b/hacking/env-setup index 4fed169097..e0de78fc75 100755 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -13,7 +13,7 @@ fi # The below is an alternative to readlink -fn which doesn't exist on OS X # Source: http://stackoverflow.com/a/1678636 FULL_PATH=`python -c "import os; print(os.path.realpath('$HACKING_DIR'))"` -ANSIBLE_HOME=`dirname "$FULL_PATH"` +export ANSIBLE_HOME=`dirname "$FULL_PATH"` PREFIX_PYTHONPATH="$ANSIBLE_HOME/lib" PREFIX_PATH="$ANSIBLE_HOME/bin" |