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

Create Lokole admin user during setup

This commit is contained in:
Clemens Wolff 2018-11-12 11:01:56 -05:00
parent eb9808de27
commit b21401be14
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