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
|
@ -15,7 +15,7 @@
|
|||
name:
|
||||
- python2
|
||||
- python-setuptools # Provides setuptools-44 on recent OS's (last version compatible with python2)
|
||||
- virtualenv # For Ansible module 'pip' when used with 'virtualenv_command: /usr/bin/virtualenv' and 'virtualenv_python: python2.7' -- compare package 'python3-venv' used by roles {calibre-web, jupyterhub, lokole}
|
||||
- virtualenv # Drags in 'python3-virtualenv' which in turn drags in 'python3-pip' -- for Ansible module 'pip' when used with 'virtualenv_command: /usr/bin/virtualenv' and 'virtualenv_python: python2.7' -- compare package 'python3-venv' used by roles {calibre-web, jupyterhub, lokole}
|
||||
state: present
|
||||
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19)
|
||||
# 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already.
|
||||
|
|
|
@ -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