Skip to content

Commit

Permalink
Debug python3 xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcr01 committed Sep 3, 2024
1 parent 9c8b5ca commit d039fe7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ansible-playbooks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
add-apt-repository -y ppa:jblgf0/python
apt-get update
apt-get install -y python3.6 python3-apt
ln -sf /usr/bin/python3.6 /usr/bin/python3
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
cd /usr/lib/python3/dist-packages
sudo ln -s apt_inst.cpython-35m-x86_64-linux-gnu.so apt_inst.so
sudo ln -s apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.so
fi
fi
Expand Down Expand Up @@ -111,6 +114,13 @@
- ansible_os_family == 'Debian'
- ansible_distribution == "Ubuntu"
- ansible_distribution_release == "jammy"

- name: Change Python link Ubuntu Xenial
command: ln -sf /usr/local/bin/python3.8 /usr/bin/python3
when:
- ansible_pkg_mgr == "apt"
- ansible_distribution == "Ubuntu"
- ansible_distribution_release == "xenial"

# ---------------------------------------------------------------------
# Pip installation ----------------------------------------------------
Expand Down

0 comments on commit d039fe7

Please sign in to comment.