You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/hacking/env-setup

18 lines
431 B
Bash

#!/bin/bash
# usage: source ./hacking/env-setup
# modifies environment for running Ansible from checkout
PREFIX_PYTHONPATH="$PWD/lib"
PREFIX_PATH="$PWD/bin"
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
export PATH=$PREFIX_PATH:$PATH
export ANSIBLE_LIBRARY="$PWD/library"
echo "PATH=$PATH"
echo "PYTHONPATH=$PYTHONPATH"
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
echo "reminder: specify your host file with -i"
echo "done."