From 9a86d81abbdc5f29c7f003bdb5bd7e2e92866bc3 Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Sun, 30 Jan 2022 15:35:02 +0000
Subject: [PATCH] Use versioned get-pip.py URL for Ubuntu Bionic

Pip 22.0 doesn't support Python versions prior to 3.7, so the
unversioned get-pip.py script refuses to run under Ubuntu Bionic's
default python3 interpreter. Add a 3.6-specific URL instead to work
around this.

Change-Id: Icab5f4dd45d8f290a2f52db083cdc564e5a08776
---
 playbooks/roles/pip3/tasks/bionic.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 playbooks/roles/pip3/tasks/bionic.yaml

diff --git a/playbooks/roles/pip3/tasks/bionic.yaml b/playbooks/roles/pip3/tasks/bionic.yaml
new file mode 100644
index 0000000000..baa05565b6
--- /dev/null
+++ b/playbooks/roles/pip3/tasks/bionic.yaml
@@ -0,0 +1,6 @@
+# Latest pip (and get-pip.py) does not support the Python 3.6 on Ubuntu Bionic
+- name: Download get-pip.py
+  command: wget https://bootstrap.pypa.io/pip/3.6/get-pip.py
+  args:
+    chdir: /var/lib
+    creates: /var/lib/get-pip.py