1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Install Kolibri w/ apt (.deb file) instead of pip (.pex file)

This commit is contained in:
A Holt 2019-09-26 18:50:33 -04:00 committed by GitHub
parent a8ecd59c7b
commit 1641b22165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,24 +20,37 @@
- "{{ kolibri_home }}" # /library/kolibri
- "{{ kolibri_venv_path }}" # /usr/local/kolibri
- name: Install latest Kolibri using pip, to venv
pip:
- name: Install latest Kolibri using apt
apt:
name: kolibri
virtualenv: "{{ kolibri_venv_path }}"
virtualenv_site_packages: no
state: latest
extra_args: --no-cache-dir
when: internet_available and not (kolibri_version is defined)
when: internet_available and (kolibri_version is undefined)
- name: Install Kolibri {{ kolibri_version }} using pip, to venv
pip:
name: kolibri
virtualenv: "{{ kolibri_venv_path }}"
virtualenv_site_packages: no
version: "{{ kolibri_version }}"
- name: Install Kolibri {{ kolibri_version }} using apt
apt:
name: "kolibri={{ kolibri_version }}"
extra_args: --no-cache-dir
when: internet_available and kolibri_version is defined
#- name: Install latest Kolibri using pip, to venv
# pip:
# name: kolibri
# virtualenv: "{{ kolibri_venv_path }}"
# virtualenv_site_packages: no
# state: latest
# extra_args: --no-cache-dir
# when: internet_available and (kolibri_version is undefined)
#- name: Install Kolibri {{ kolibri_version }} using pip, to venv
# pip:
# name: kolibri
# virtualenv: "{{ kolibri_venv_path }}"
# virtualenv_site_packages: no
# version: "{{ kolibri_version }}"
# extra_args: --no-cache-dir
# when: internet_available and kolibri_version is defined
- name: 'Install from templates: kolibri.service unit file for systemd & sites-available/kolibri.conf for Apache'
template:
src: "{{ item.src }}"