diff --git a/roles/lokole/defaults/main.yml b/roles/lokole/defaults/main.yml index b8f4d030f..887938e44 100644 --- a/roles/lokole/defaults/main.yml +++ b/roles/lokole/defaults/main.yml @@ -14,6 +14,7 @@ # https://pypi.org/project/opwen-email-client/ ...OR... HARDCODE EITHER HERE: #lokole_commit: # OPTIONAL: a 40-char git hash, from https://github.com/ascoderu/lokole/commits/master #lokole_version: # OPTIONAL: e.g. master or 0.5.10 or a version number from https://pypi.org/project/opwen-email-client/#history +lokole_repo: https://github.com/ascoderu/lokole.git@{{ lokole_commit }} # the lokole git repo location to pull from if lokole_commit is defined lokole_admin_user: admin # lowercase is nec here (even though uppercase Admin/changeme is IIAB's OOB recommendation: BOTH WORK to log in to http://box/lokole) lokole_admin_password: changeme diff --git a/roles/lokole/tasks/install.yml b/roles/lokole/tasks/install.yml index 8851c42ae..782866744 100644 --- a/roles/lokole/tasks/install.yml +++ b/roles/lokole/tasks/install.yml @@ -30,7 +30,7 @@ # TODO: revert back to main remo after upstream PR is merged - name: "OPTIONAL: pip install opwen_email_client (Lokole, git commit {{ lokole_commit }}) from GitHub to {{ lokole_venv }}, if lokole_commit is defined" pip: - name: "git+https://github.com/mabuelhagag/lokole.git@{{ lokole_commit }}#egg=opwen_email_client" + name: "git+{{ lokole_repo }}@{{ lokole_commit }}#egg=opwen_email_client" virtualenv: "{{ lokole_venv }}" virtualenv_command: python3 -m venv "{{ lokole_venv }}" extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/