mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Update constants.py to pull module path and the hosts file from the
environment (ANSIBLE_{LIBRARY,HOSTS}) if defined. Update manpages to represent this. Also update the env-setup script to set ANSIBLE_{LIBRARY,HOSTS}.
This commit is contained in:
parent
3c20f4000f
commit
f2c2786a14
5 changed files with 51 additions and 14 deletions
|
@ -2,10 +2,20 @@
|
|||
PREFIX_PYTHONPATH="`pwd`/lib/ansible:`pwd`/lib"
|
||||
PREFIX_PATH="`pwd`/bin"
|
||||
PREFIX_MANPATH="`pwd`/docs/man"
|
||||
PREFIX_ANS_LIBRARY="`pwd`/library"
|
||||
PREFIX_ANS_HOSTS="`pwd`/examples/ansible_hosts"
|
||||
|
||||
echo "Prefixing PYTHONPATH with $PREFIX_PYTHONPATH"
|
||||
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
||||
|
||||
echo "Prefixing PATH with $PREFIX_PATH"
|
||||
export PATH=$PREFIX_PATH:$PATH
|
||||
|
||||
echo "Prefixing MANPATH with $PREFIX_MANPATH"
|
||||
export MANPATH=$PREFIX_MANPATH:$MANPATH
|
||||
|
||||
echo "Setting ANSIBLE_LIBRARY to ${PREFIX_ANS_LIBRARY}"
|
||||
export ANSIBLE_LIBRARY=${PREFIX_ANS_LIBRARY}
|
||||
|
||||
echo "Setting ANSIBLE_HOSTS to ${PREFIX_ANS_HOSTS}"
|
||||
export ANSIBLE_HOSTS=${PREFIX_ANS_HOSTS}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue