mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
kalite/tasks/install.yml: Tough aging vars is_debian_11, is_ubuntu_2204
This commit is contained in:
parent
fb4b5868ce
commit
3dd3d868ad
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
|||
- 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: is_debian_11 or is_ubuntu_2204 # Covers is_raspbian_11 and is_linuxmint_21, and is more future-proof than...
|
||||
when: (is_debian_11 is defined and is_debian_11) or (is_ubuntu_2204 is defined and is_ubuntu_2204) # Covers is_raspbian_11 and is_linuxmint_21, 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.
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
# use key retrieval from mongodb
|
||||
- name: Use scripts/install_python2.sh to install python2 and virtualenv
|
||||
command: "{{ iiab_dir }}/scripts/install_python2.sh"
|
||||
when: not (is_debian_11 or is_ubuntu_2204) # Also avoids is_raspbian_11 and is_linuxmint_21, and is more future-proof than...
|
||||
when: not ((is_debian_11 is defined and is_debian_11) or (is_ubuntu_2204 is defined and is_ubuntu_2204)) # Also avoids is_raspbian_11 and is_linuxmint_21, 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
|
||||
|
|
Loading…
Add table
Reference in a new issue