1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #1317 from ascoderu/add-lokole-admin-user

Create Lokole admin user during setup
This commit is contained in:
A Holt 2019-01-03 12:13:46 -05:00 committed by GitHub
commit 76b74245d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,7 @@
# Info needed to install Lokole
lokole_version: "0.1.24"
lokole_version: "0.1.26"
lokole_admin_user: admin
lokole_admin_password: changeme
lokole_install_path: "{{ content_base }}/lokole" # /library/lokole
lokole_venv: "{{ lokole_install_path }}/venv" # /library/lokole/venv

View file

@ -53,6 +53,13 @@
tags:
- configure
- name: Create admin user
shell: |
. {{ lokole_run_directory }}/webapp_secrets.sh
{{ lokole_venv }}/bin/manage.py createadmin --name='{{ lokole_admin_user }}' --password='{{ lokole_admin_password }}'
tags:
- configure
- name: Install unit file /etc/systemd/system/lokole.service from template
template:
src: lokole.service.j2