f73ac53e58
This allows the use of variables in vars_prompt fields but allows variables entered in the prompt to affect play vars rather than throwing an undefined error.
Add tests for vars_prompt
(cherry picked from commit 6d38167d49
)
15 lines
390 B
Bash
Executable file
15 lines
390 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# Install passlib on RHEL and FreeBSD
|
|
dist=$(python -c 'import platform; print(platform.dist()[0])')
|
|
system=$(python -c 'import platform; print(platform.system())')
|
|
|
|
if [[ "$dist" == "redhat" || "$system" == "FreeBSD" ]]; then
|
|
pip install passlib
|
|
fi
|
|
|
|
# Interactively test vars_prompt
|
|
pip install pexpect
|
|
python test-vars_prompt.py -i ../../inventory "$@"
|