Add Python 3 library - jmespath

This commit is contained in:
Christer Warén 2023-12-30 12:50:53 +02:00
parent 36162b861b
commit 813d1cd38a

View File

@ -28,7 +28,7 @@ mkdir -p ~/.ssh &> /dev/null
apt-get install -y python3-pip python3-venv jq git curl &> /dev/null apt-get install -y python3-pip python3-venv jq git curl &> /dev/null
python3 -m venv /opt/ansible &> /dev/null python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/pip3 install ansible hvac netaddr &> /dev/null /opt/ansible/bin/pip3 install ansible hvac netaddr jmespath &> /dev/null
HOSTNAME=$1 HOSTNAME=$1
if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]]; then if [[ -z "$HOSTNAME" || ${#HOSTNAME} -lt 5 ]]; then