1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

scripts/ansible: Document 'pipx install ansible-core'

This commit is contained in:
A Holt 2023-09-08 18:56:55 -04:00 committed by GitHub
parent eb09a04bd9
commit f527807bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,12 @@ else
# 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
# 2023-09-08: NEW WAY ANSIBLE RECOMMENDS? https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
# $APT_PATH/apt -y install pipx # Typically adds 50+ packages!
# pipx install ansible-core
# pipx ensurepath # Adds /root/.local/bin to $PATH -- next time you open a shell -- e.g. for /root/.local/bin/ansible -> /root/.local/pipx/venvs/ansible-core/bin/ansible
echo -e "\nCreate virtual environment for Ansible"
python3 -m venv /usr/local/ansible