mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
venv WIP: scripts/ansible & kalite/tasks/install.yml
This commit is contained in:
parent
007df549ab
commit
d90227e066
2 changed files with 5 additions and 5 deletions
|
@ -160,7 +160,7 @@ fi
|
|||
###echo -e 'ENSURE ANSIBLE UPDATES CLEANLY: (then re-run this script to be sure!)\n'
|
||||
###grep '^deb .*ansible' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v '^/etc/apt/sources.list.d/iiab-ansible.list:' || true # Override bash -e (instead of aborting at 1st error)
|
||||
|
||||
#echo -e "\napt update; apt install python3-pip # Also installs 'python3-setuptools' and 'python3' etc"
|
||||
#echo -e "\napt update; apt install python3-pip # Also installs 'python3-setuptools' and 'python3' etc"
|
||||
#echo -e "https://github.com/iiab/iiab/blob/master/scripts/ansible.md\n"
|
||||
#$APT_PATH/apt update
|
||||
#$APT_PATH/apt -y install python3-pip
|
||||
|
@ -183,7 +183,7 @@ fi
|
|||
# cache system-wide before installing:
|
||||
# https://stackoverflow.com/questions/9510474/removing-pips-cache/61762308#61762308
|
||||
# https://github.com/iiab/iiab/pull/3022
|
||||
pip3 config --global set global.no-cache-dir false
|
||||
#pip3 config --global set global.no-cache-dir false
|
||||
|
||||
#if ! uname -m | grep -q 64; then
|
||||
# echo "2022-11-09: ansible-core 2.12.10+ PPA works on 32-bit RasPiOS, using /etc/apt/sources.list.d/iiab-ansible.list, until upstream wheels -> cryptography is fixed (PR #3421)"
|
||||
|
@ -199,10 +199,10 @@ echo -e "\napt update; apt install python3-venv"
|
|||
$APT_PATH/apt update
|
||||
$APT_PATH/apt -y install python3-venv
|
||||
|
||||
echo -e "Create virtual environment for ansible"
|
||||
echo -e "Create virtual environment for Ansible"
|
||||
python3 -m venv /usr/local/ansible
|
||||
/usr/local/ansible/bin/python3 -m pip install --upgrade ansible-core
|
||||
echo -e "Place ansible on path using symlinks"
|
||||
echo -e "Create symlinks /usr/local/bin/ansible* -> /usr/local/ansible/bin/ansible*"
|
||||
cd /usr/local/ansible/bin
|
||||
for bin in $(ls ansible*); do
|
||||
ln -sf /usr/local/ansible/bin/$bin /usr/local/bin/$bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue