Skip to content

Commit

Permalink
added lokole_repo var to enable setting alternative git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mabuelhagag committed Jul 1, 2022
1 parent e0ca1f2 commit 191e757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/lokole/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/lokole/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 191e757

Please sign in to comment.