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:
parent
eb09a04bd9
commit
f527807bb8
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue