use python-pip3

Change-Id: Ide9204a68f8f4e1bb67c8bd2a2f8c9c3e1fb9f45
This commit is contained in:
Matthew Mosesohn 2017-07-27 20:18:32 +03:00
parent e0f6a8bd4e
commit 169f2ed141
1 changed files with 2 additions and 3 deletions

View File

@ -273,9 +273,8 @@ if ! admin_node_command type ansible 2>&1 > /dev/null; then
if [[ "$ANSIBLE_INSTALL_SOURCE" == "apt" ]]; 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
with_retries admin_node_command -- sudo apt-get install -y python-netaddr libssl-dev python3-pip
with_retries admin_node_command -- sudo pip3 install --upgrade ansible==$required_ansible_version
else
echo "ERROR: Unknown Ansible install source: ${ANSIBLE_INSTALL_SOURCE}"
exit 1