mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Allow hacking/env-setup module path to use config file library path
hacking/env-setup now adds the configured library path in ANSIBLE_CONFIG to the ANSIBLE_LIBRARY environment variable in addition to the previous default of ANSIBLE_HOME/library. This replaces #5950.
This commit is contained in:
parent
f07091ed69
commit
e2d04f7e96
2 changed files with 31 additions and 1 deletions
|
@ -21,7 +21,8 @@ PREFIX_MANPATH="$ANSIBLE_HOME/docs/man"
|
|||
|
||||
[[ $PYTHONPATH != ${PREFIX_PYTHONPATH}* ]] && export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
||||
[[ $PATH != ${PREFIX_PATH}* ]] && export PATH=$PREFIX_PATH:$PATH
|
||||
export ANSIBLE_LIBRARY="$ANSIBLE_HOME/library"
|
||||
unset ANSIBLE_LIBRARY
|
||||
export ANSIBLE_LIBRARY="$ANSIBLE_HOME/library:`python $HACKING_DIR/get_library.py`"
|
||||
[[ $MANPATH != ${PREFIX_MANPATH}* ]] && export MANPATH=$PREFIX_MANPATH:$MANPATH
|
||||
|
||||
# Print out values unless -q is set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue