1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/vars_prompt/runme.sh

16 lines
390 B
Bash
Raw Normal View History

#!/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 "$@"