1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

scripts/ansible: Document new OS's PEP 668 guideline

This commit is contained in:
A Holt 2023-03-22 08:40:29 -04:00 committed by GitHub
parent 1b48a2666a
commit 7365b41680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,6 +199,9 @@ echo -e "\napt update; apt install python3-venv"
$APT_PATH/apt update
$APT_PATH/apt -y install python3-venv
# 2023-03-22: OS's like Ubuntu 23.04 and Debian 12 (e.g. with Python 3.11+) ask
# that virtual environments (venv) be used to safely isolate pip installs:
# https://peps.python.org/pep-0668
echo -e "\nCreate virtual environment for Ansible"
python3 -m venv /usr/local/ansible
/usr/local/ansible/bin/python3 -m pip install --upgrade ansible-core