workaround for pyasn1 issues with pip

Change-Id: Ia89eb5894bb6ce28c3b25d0ee949d5346d656813
This commit is contained in:
Matthew Mosesohn 2017-07-27 19:47:07 +03:00
parent 05f11e6348
commit e0f6a8bd4e
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ if ! admin_node_command type ansible 2>&1 > /dev/null; then
with_retries admin_node_command -- sudo apt-get install -y ansible python-netaddr
elif [[ "$ANSIBLE_INSTALL_SOURCE" == "pip" ]]; then
with_retries admin_node_command -- sudo apt-get install -y python-netaddr libssl-dev python-pip
with_retries admin_node_command -- sudo easy_install --upgrade --user pyasn1
with_retries admin_node_command -- sudo pip install --upgrade ansible==$required_ansible_version
else
echo "ERROR: Unknown Ansible install source: ${ANSIBLE_INSTALL_SOURCE}"