Browse Source

switch back to python2

Change-Id: I606bfd79db64370fc60352cad113e81259cbd254
Matthew Mosesohn 1 year ago
parent
commit
51164d9aab
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      utils/jenkins/kargo_deploy.sh

+ 4
- 2
utils/jenkins/kargo_deploy.sh View File

@@ -273,8 +273,10 @@ if ! admin_node_command type ansible 2>&1 > /dev/null; then
273 273
     if [[ "$ANSIBLE_INSTALL_SOURCE" == "apt" ]]; then
274 274
         with_retries admin_node_command -- sudo apt-get install -y ansible python-netaddr
275 275
     elif [[ "$ANSIBLE_INSTALL_SOURCE" == "pip" ]]; then
276
-        with_retries admin_node_command -- sudo apt-get install -y python3-netaddr libssl-dev python3-pip
277
-        with_retries admin_node_command -- sudo pip3 install --upgrade ansible==$required_ansible_version
276
+        admin_node_command -- sudo pip uninstall -y setuptools pip || true
277
+        with_retries admin_node_command -- sudo apt-get install -y --reinstall python-netaddr libssl-dev python-pip python-setuptools python-pkg-resources
278
+        with_retries admin_node_command -- sudo -H easy_install pyopenssl==16.2.0
279
+        with_retries admin_node_command -- sudo pip install --upgrade ansible==$required_ansible_version
278 280
     else
279 281
          echo "ERROR: Unknown Ansible install source: ${ANSIBLE_INSTALL_SOURCE}"
280 282
          exit 1

Loading…
Cancel
Save