1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

pip install {{ kolibri_version }} if var's defined

This commit is contained in:
A Holt 2019-06-13 17:33:52 -04:00 committed by GitHub
parent f8e431cd19
commit e53efbdd3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,16 @@
virtualenv_site_packages: no
state: latest
extra_args: --no-cache-dir
when: internet_available | bool
when: internet_available and not (kolibri_version is defined)
- name: Install kolibri {{ kolibri_version }} using pip
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: Run Kolibri migrations
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" manage migrate