mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
parent
e1722645c5
commit
544a1f2959
1 changed files with 6 additions and 0 deletions
|
@ -204,6 +204,12 @@ $APT_PATH/apt -y install python3-venv
|
|||
# https://peps.python.org/pep-0668
|
||||
echo -e "\nCreate virtual environment for Ansible"
|
||||
python3 -m venv /usr/local/ansible
|
||||
|
||||
# Same detection as local_facts.fact https://github.com/iiab/iiab/issues/3547
|
||||
if [ -f /etc/rpi-issue ] && [ "$(dpkg --print-architecture)" = armhfp ]; then
|
||||
/usr/local/ansible/bin/python3 -m pip install cryptography==40.0.1
|
||||
fi
|
||||
|
||||
/usr/local/ansible/bin/python3 -m pip install --upgrade ansible-core
|
||||
echo -e "\nCreate symlinks /usr/local/bin/ansible* -> /usr/local/ansible/bin/ansible*"
|
||||
for bin in /usr/local/ansible/bin/ansible*; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue