Skip to content

Commit

Permalink
conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed Mar 5, 2024
1 parent 66eb986 commit f871683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/kalite/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
virtualenv_command: virtualenv # Traditionally /usr/bin/virtual/env -- but install_python2.sh (for Ubuntu 23.10+) sets up /usr/local/bin/virtualenv
virtualenv_python: python2.7
extra_args: "--no-use-pep517 --no-cache-dir --no-python-version-warning"
when: ((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: not (is_ubuntu_2404 is defined and is_ubuntu_2404)
#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)
# long form of (is_debian_11+ or is_ubuntu_20+)

Expand All @@ -65,7 +65,7 @@

- name: Use scripts/U2404_python2.sh to install python2 and virtualenv
command: bash "{{ iiab_dir }}/scripts/U2404_python2.sh"
when: (is_ubuntu_2404 is defined and is_ubuntu_2404)
when: is_ubuntu_2404 is defined and is_ubuntu_2404

- name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service"
template:
Expand Down

0 comments on commit f871683

Please sign in to comment.