mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
kalite/tasks/install.yml: Force Python 2 if Debian > 11 or Ubuntu > 22.04
This commit is contained in:
parent
9ca80db3fa
commit
e1df2a5061
1 changed files with 4 additions and 2 deletions
|
@ -17,7 +17,8 @@
|
|||
- python-setuptools # Provides setuptools-44 on recent OS's (last version compatible with python2)
|
||||
- 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_12 or is_ubuntu_2304 or is_ubuntu_2310)
|
||||
when: is_debian_11 or is_ubuntu_2204 # Covers is_linuxmint_12, and is more future-proof than...
|
||||
#when: not (is_debian_12 or is_ubuntu_2304 or is_ubuntu_2310)
|
||||
# 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.
|
||||
|
||||
#- name: Install Ubuntu keyrings on Debian
|
||||
|
@ -31,7 +32,8 @@
|
|||
# use key retrieval from mongodb
|
||||
- name: Use scripts/install_python2.sh to install python2 and virtualenv
|
||||
command: "{{ iiab_dir }}/scripts/install_python2.sh"
|
||||
when: is_debian_12 or is_ubuntu_2304 or is_ubuntu_2310
|
||||
when: not (is_debian_11 or is_ubuntu_2204) # Also avoids is_linuxmint_12, and is more future-proof than...
|
||||
#when: is_debian_12 or is_ubuntu_2304 or is_ubuntu_2310
|
||||
|
||||
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} # WAS: if Raspbian/Debian > 10 or Ubuntu > 19
|
||||
pip:
|
||||
|
|
Loading…
Reference in a new issue