1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
Jerry Vonau 2023-04-24 10:34:54 -05:00
parent e1722645c5
commit 544a1f2959

View file

@ -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